handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GuestImgMaxSize = 737280
)
View Source
const MAXONEPAGEOBJ = MAXROW * 7
View Source
const MAXROW = 3

Variables

This section is empty.

Functions

func HandleCallback

func HandleCallback(bot *tgbotapi.BotAPI, CallbackQuery *tgbotapi.CallbackQuery)

func HandleCmd

func HandleCmd(bot *tgbotapi.BotAPI, Message tgbotapi.Message)

func HandleMsg

func HandleMsg(bot *tgbotapi.BotAPI, Message *tgbotapi.Message)

Types

type Config

type Config struct {
	api.DrawConfig `yaml:",inline"`
	PrePhotoID     string `json:"pre_photo_id,omitempty" yaml:"pre_photo_id,omitempty"`
	ControlPhotoID string `json:"control_photo_id,omitempty" yaml:"control_photo_id,omitempty"`
}

func (*Config) CorrectCfg

func (cfg *Config) CorrectCfg(u *user.UserInfo, gTag, gUc, transTag, transUc, gSeed bool)

func (*Config) Fomate2TgHTML

func (c *Config) Fomate2TgHTML() []byte

func (*Config) Fomate2TgMdV2

func (c *Config) Fomate2TgMdV2() []byte

Jump to

Keyboard shortcuts

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