Documentation ¶
Index ¶
- type Bot
- type Record
- type TargetsDB
- func (t *TargetsDB) CreateTarget(record Record) error
- func (t *TargetsDB) DeleteTarget(id int) error
- func (t *TargetsDB) GetCurrentTargets(chatID int64) ([]Record, error)
- func (t *TargetsDB) GetTarget(id int) (*Record, error)
- func (t *TargetsDB) GetTargets() ([]monitor.Target, error)
- func (t *TargetsDB) Migrate()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { AdminNickname string DB *TargetsDB TgBot *tgbotapi.BotAPI Monitor *monitor.Monitor // contains filtered or unexported fields }
func (*Bot) MonitorStart ¶
func (b *Bot) MonitorStart()
func (*Bot) SendDialogMessage ¶
func (*Bot) SendMessage ¶
func (*Bot) StartDialog ¶
func (b *Bot) StartDialog(update *tgbotapi.Update, dialog dialog)
type TargetsDB ¶
func (*TargetsDB) CreateTarget ¶
func (*TargetsDB) DeleteTarget ¶
func (*TargetsDB) GetCurrentTargets ¶
Click to show internal directories.
Click to hide internal directories.