Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Options *Options // Telegram options Logger service.Logger // logger VerboseLogging bool // Switch on verbose logging }
Client is used to send telegram messages
func (*Client) Initialize ¶
Initialize initializes the telegram client
func (*Client) SendMessage ¶
SendMessage sends the specified message to the telegram chat specified in Options
type Options ¶
type Options struct { EnableTelegram bool `json:"enableTelegram"` // Enable Telegram messages BotID string `json:"botId"` // Bot Identifier ChatID string `json:"chatId"` // Chat Identifier }
Options holds the configuration options for sending Telegram messages
func (*Options) ReadFromFile ¶
ReadFromFile will read the configuration settings from the specified file
func (*Options) WriteToFile ¶
WriteToFile will write the configuration settings to the specified file
Click to show internal directories.
Click to hide internal directories.