net

package
v0.0.0-...-38f52fd Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TgBot

type TgBot struct {
	// contains filtered or unexported fields
}

TgBot Telegram Bot struct

func NewTgBot

func NewTgBot(main *menu.MainMenu, mod *menu.ModMenu, log *utils.Log, r *menu.RelayMenu,
	ath *auth.Authorization) *TgBot

NewTgBot make new struct

func (*TgBot) ChangeLevel

func (tb *TgBot) ChangeLevel(msg *tgbotapi.Message)

ChangeLevel change menu level handler

func (*TgBot) SendError

func (tb *TgBot) SendError(bot *tgbotapi.BotAPI, message *tgbotapi.Message, text string)

SendError Send error tg message

func (*TgBot) StartBot

func (tb *TgBot) StartBot(key string) error

StartBot starting bot loop

func (*TgBot) UpdateMessage

func (tb *TgBot) UpdateMessage(msg *tgbotapi.Message, bot *tgbotapi.BotAPI)

UpdateMessage update messages handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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