tgbot

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	RegionChan chan int
	Data       map[string]string
}

type TgBot

type TgBot struct {
	Config    *conf.Conf
	TypeKey   *tb.ReplyMarkup
	AmiKey    *tb.ReplyMarkup
	Data      map[int]*Data
	RegionKey *tb.ReplyMarkup
	Session   session.Session
}

func New

func New(Config *conf.Conf) *TgBot

func (*TgBot) AgaManger

func (p *TgBot) AgaManger(bot *tb.Bot)

func (*TgBot) CheckKey added in v1.0.4

func (p *TgBot) CheckKey(id int) string

func (*TgBot) Ec2Manger

func (p *TgBot) Ec2Manger(bot *tb.Bot)

func (*TgBot) KeyManger

func (p *TgBot) KeyManger(bot *tb.Bot)

func (*TgBot) LightSailManger added in v1.0.4

func (p *TgBot) LightSailManger(bot *telebot.Bot)

func (*TgBot) QuotaManger

func (p *TgBot) QuotaManger(bot *tb.Bot)

func (*TgBot) Start

func (p *TgBot) Start()

Jump to

Keyboard shortcuts

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