Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(b *Bot)
func WithConfig ¶
func WithTelegramBot ¶
func WithTelegramBot(tb TelegramBot) Option
func WithTwitterClient ¶
func WithTwitterClient(tc TwitterClient) Option
type TelegramBot ¶
type TelegramBot interface { Start() Stop() SetCommands([]TelegramBotCommand) error Handle(string, TelegramHandler) Send(string, interface{}, ...interface{}) error GetFile(string) (io.ReadCloser, error) }
type TelegramBotCommand ¶
type TelegramHandler ¶
type TelegramHandler func(TelegramMessage) error
type TelegramMessage ¶
type TelegramMessage struct { SenderID string Text string Payload string Photo TelegramPhoto IsPrivate bool }
type TelegramPhoto ¶
Click to show internal directories.
Click to hide internal directories.