Documentation ¶
Overview ¶
Package ctrl contains all implementations of controllers to bots, to allow to run bots in several messengers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramBotCtrl ¶
TelegramBotCtrl is an implementation of bot ctrl to execute bot commands in the Telegram messenger
func (*TelegramBotCtrl) Run ¶
func (t *TelegramBotCtrl) Run(ctx context.Context) error
Run starts bots to listen for messages
func (*TelegramBotCtrl) SendBotResponse ¶
func (t *TelegramBotCtrl) SendBotResponse(resp *bot.Response, chatIDStr string) error
SendBotResponse sends bot's answer to tg channel and saves it to log
Click to show internal directories.
Click to hide internal directories.