package services_astrologer

import (
	"astrology-api/services"
)

// MSG91 access for the astrologer stack.
//
// This file used to be a byte-for-byte copy of services/msg91_service.go,
// reading the same MSG91_* environment variables a second time and carrying the
// same bug in its auth-key fallback. Nothing in this package ever called it.
//
// The two stacks stay separate everywhere else, but there is one MSG91 account
// and one set of credentials behind it, and those now live in the systemflag
// table where the admin panel can change them. A second copy of the resolution
// logic would only be somewhere for the two to drift apart, so the types are
// aliased and the constructor delegates.

type MSG91Service = services.MSG91Service

type MSG91SMSRequest = services.MSG91SMSRequest

type MSG91SMSResponse = services.MSG91SMSResponse

// NewMSG91Service builds the gateway client from the systemflag table, falling
// back to the environment and then to the built-in defaults.
func NewMSG91Service() *MSG91Service {

	return services.NewMSG91Service()
}

// BuildOTPMessage creates the SMS body for an OTP.
func BuildOTPMessage(otp string) string {

	return services.BuildOTPMessage(otp)
}
