Documentation ¶ Index ¶ func ListenAndServe(token string, s storage.Interface) error type Bot func New(token string, s storage.Interface) (*Bot, error) func (b *Bot) Listen() func (b *Bot) Notify(chatID int64, e models.Event) error func (b *Bot) Serve() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ListenAndServe ¶ func ListenAndServe(token string, s storage.Interface) error Types ¶ type Bot ¶ type Bot struct { // contains filtered or unexported fields } func New ¶ func New(token string, s storage.Interface) (*Bot, error) func (*Bot) Listen ¶ func (b *Bot) Listen() func (*Bot) Notify ¶ func (b *Bot) Notify(chatID int64, e models.Event) error func (*Bot) Serve ¶ func (b *Bot) Serve() Source Files ¶ View all Source files bot.go Directories ¶ Show internal Expand all Path Synopsis wizard Click to show internal directories. Click to hide internal directories.