Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramBot ¶
type TelegramBot struct { Messenger *m.Messenger Bot *tgBotApi.BotAPI // contains filtered or unexported fields }
func Connect ¶
func Connect(log *logger.Logger, token, logLevel string, groupTitle *string, groupChatId *int64, messenger *m.Messenger) (*TelegramBot, error)
Connect initializes telegram bot via API
func (*TelegramBot) SendTextMsg ¶
func (b *TelegramBot) SendTextMsg(ts time.Time, phone, msgId, name, msg string)
SendTextMsg sends messages to the telegram bot
Click to show internal directories.
Click to hide internal directories.