handlers

package
v0.0.0-...-a262b4a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StateMap = in.NewUserStateMap()
	UserMap  = in.NewUserDataMap()
	EventMap = in.NewEventDataMap()
)

Functions

func CheckEntranceYear

func CheckEntranceYear(u in.UpdateMessage) (bool, error)

func CheckPersianText

func CheckPersianText(u in.UpdateMessage) (bool, error)

func CheckPhoneText

func CheckPhoneText(u in.UpdateMessage) (bool, error)

func CheckStudentNumber

func CheckStudentNumber(u in.UpdateMessage) (bool, error)

func HandleCallbacks

func HandleCallbacks(ctx context.Context, ent tg.Entities, update *tg.UpdateBotCallbackQuery) error

func HandleNewMessage

func HandleNewMessage(c context.Context, ent tg.Entities, u *tg.UpdateNewMessage) error

func InitHandlers

func InitHandlers(database *gorm.DB, raw *telegram.Client, tgClient *tg.Client, messageSender *message.Sender, up *uploader.Uploader, adminPass string, varifChat int, gotenberg string)

func IsStringEntraceYear

func IsStringEntraceYear(text string) bool

func IsStringPersian

func IsStringPersian(text string) bool

func IsStringPhoneNumber

func IsStringPhoneNumber(text string) bool

func IsStringStudentNumber

func IsStringStudentNumber(text string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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