channels

package
v0.0.0-...-0fdd30f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2018 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTelegram

func InitTelegram()

InitTelegram initializes telegram bot

func SendMessageBeeline

func SendMessageBeeline(login, pass, sender, recipients, msg string) error

SendMessageBeeline sends message via beeline

func SendMessageEmail

func SendMessageEmail(senderName, senderAddress, recipients, subject, message string) error

SendMessageEmail sends message via local email server

func SendMessageSmsc

func SendMessageSmsc(login, pass, sender, recipients, msg string) error

SendMessageSmsc sends message via smsc

func SendMessageTelegram

func SendMessageTelegram(chatID int64, message string) error

SendMessageTelegram sends message to the specified telegram group

func SendMessageWebsms

func SendMessageWebsms(login, pass, sender, recipients, msg string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL