Documentation ¶
Index ¶
- func InitTelegram()
- func SendMessageBeeline(login, pass, sender, recipients, msg string) error
- func SendMessageEmail(senderName, senderAddress, recipients, subject, message string) error
- func SendMessageSmsc(login, pass, sender, recipients, msg string) error
- func SendMessageTelegram(chatID int64, message string) error
- func SendMessageWebsms(login, pass, sender, recipients, msg string) error
- type BeelineResponse
- type SmscResponse
- type WebsmsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMessageBeeline ¶
SendMessageBeeline sends message via beeline
func SendMessageEmail ¶
SendMessageEmail sends message via local email server
func SendMessageSmsc ¶
SendMessageSmsc sends message via smsc
func SendMessageTelegram ¶
SendMessageTelegram sends message to the specified telegram group
func SendMessageWebsms ¶
SendMessageWebsms sends message via websms
Types ¶
type BeelineResponse ¶
type BeelineResponse struct {
Errors []string `xml:"errors>error"`
}
BeelineResponse holds the response from beeline Must be exportable
type SmscResponse ¶
type SmscResponse struct {
Error string
}
SmscResponse holds the response from smsc Must be exportable
type WebsmsResponse ¶
type WebsmsResponse struct {
Error string
}
WebsmsResponse holds the response from smsc Must be exportable
Click to show internal directories.
Click to hide internal directories.