bot

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL