Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramBot ¶
type TelegramBot struct {
// contains filtered or unexported fields
}
TelegramBot is a wrapper for TelegramBotAPI.
func New ¶
func New(token string, debug bool, offset, timeout int) (*TelegramBot, error)
New makes a bot for Telegram.
func (*TelegramBot) GetUpdatesChan ¶
func (b *TelegramBot) GetUpdatesChan() <-chan tgbotapi.Update
GetUpdatesChan returns a channel for receiving updates.
type TelegramBotAPI ¶
type TelegramBotAPI interface { GetUpdatesChan(config tgbotapi.UpdateConfig) tgbotapi.UpdatesChannel Send(c tgbotapi.Chattable) (tgbotapi.Message, error) }
TelegramBotAPI is interface for TelegramBot with the possibility to mock it.
Click to show internal directories.
Click to hide internal directories.