Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) GetFirstName ¶
func (*Bot) GetUpdatesChan ¶
func (*Bot) GetUserName ¶
type BotAdapter ¶
type BotAdapter interface { Send(*Message) error GetUpdatesChan(string, string) (<-chan *Message, error) GetUserName() string GetFirstName() string }
func CreateBot ¶
func CreateBot(token string) (BotAdapter, error)
type MessageType ¶
type MessageType int
const ( MessageText MessageType = iota MessageDocument MessageSticker MessagePhoto MessageAudio MessageKeyboard )
Click to show internal directories.
Click to hide internal directories.