Versions in this module Expand all Collapse all v0 v0.3.1 May 14, 2017 Changes in this version + type Bot struct + func (b *Bot) GetFirstName() string + func (b *Bot) GetUpdatesChan(webhookURL string, listenAddr string) (<-chan *Message, error) + func (b *Bot) GetUserName() string + func (b *Bot) Send(m *Message) error + type BotAdapter interface + GetFirstName func() string + GetUpdatesChan func(string, string) (<-chan *Message, error) + GetUserName func() string + Send func(*Message) error + func CreateBot(token string) (BotAdapter, error) + type Message struct + Buttons [][]string + Caption string + ChatID int64 + Data string + DisablePreview bool + From string + Markdown bool + OneTimeKeyboard bool + Replies chan *Message + Type MessageType + type MessageType int + const MessageAudio + const MessageDocument + const MessageKeyboard + const MessagePhoto + const MessageSticker + const MessageText