handler

package
v0.0.0-...-15b0e05 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlayerStatsQuery   = "player_stats_query📊📈"
	ProfileInfoQuery   = "account_info_query🎫"
	ChangeAccountQuery = "change_account_query"
	AboutMessage       = "About usℹ️"
	LogInMessage       = "Log in"
	BackMessage        = "Back"
)

Variables

Functions

func CreateAboutUsMessage

func CreateAboutUsMessage(chatId int64) tgbotapi.MessageConfig

func CreateHomePageMessage

func CreateHomePageMessage(chatId int64, messageId int) tgbotapi.Chattable

func CreateLoginMessage

func CreateLoginMessage(chatId int64) tgbotapi.MessageConfig

func CreateProfileInfoMessage

func CreateProfileInfoMessage(chatId int64, messageID int) tgbotapi.EditMessageTextConfig

func CreateProfileStatsMessage

func CreateProfileStatsMessage(chatId int64, messageID int) tgbotapi.EditMessageTextConfig

func CreateStartMessage

func CreateStartMessage(chatId int64) tgbotapi.MessageConfig

func HandleMessages

func HandleMessages(updates tgbotapi.UpdatesChannel, m tbot.MyBotMembers)

func InitBot

func InitBot(token string) (tgbotapi.UpdatesChannel, error)

func SendLoadingMessage

func SendLoadingMessage(chatId int64) (tgbotapi.Message, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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