handlers

package
v0.0.0-...-21f1175 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataMutex sync.Mutex

Functions

func AddTypeRestrictionHandler

func AddTypeRestrictionHandler(bot *telebot.Bot) func(c telebot.Context) error

Handler for /add_type_restriction

func AddVerificationParamsHandler

func AddVerificationParamsHandler(bot *telebot.Bot) func(c telebot.Context) error

AddVerificationParamsHandler handles adding verification parameters in a single step /add_verification_params

func CheckAdminHandler

func CheckAdminHandler(bot *telebot.Bot) func(c telebot.Context) error

/check_admin command - check administrator rights in a group and verify verification parameters

func GetAuthTokenFromAdmin

func GetAuthTokenFromAdmin(groupID int64, userID int64) (string, bool)

func ListVerificationParamsHandler

func ListVerificationParamsHandler(bot *telebot.Bot) func(c telebot.Context) error

ListVerificationParamsHandler displays the list of added verification parameters /list_verification_params

func ListenForStorageChanges

func ListenForStorageChanges(bot *telebot.Bot)

Store change listener

func NewUserJoinedHandler

func NewUserJoinedHandler(bot *telebot.Bot) func(c telebot.Context) error

A new user has joined the group

func SetActiveVerificationParamsHandler

func SetActiveVerificationParamsHandler(bot *telebot.Bot) func(c telebot.Context) error

Handler to switch active verification parameters /set_active_verification_params

func SetTypeRestrictionHandler

func SetTypeRestrictionHandler(bot *telebot.Bot) func(c telebot.Context) error

Handler for /set_type_restriction

func SetupHandler

func SetupHandler(bot *telebot.Bot) func(c telebot.Context) error

/setup command - administrator initiates configuration

func StartHandler

func StartHandler(bot *telebot.Bot) func(c telebot.Context) error

Handler for /start

func TestVerificationHandler

func TestVerificationHandler(bot *telebot.Bot) func(c telebot.Context) error

Handler for /test_verification

func UnifiedHandler

func UnifiedHandler(bot *telebot.Bot) func(c telebot.Context) error

func VerifiedUsersListHeandler

func VerifiedUsersListHeandler(bot *telebot.Bot) func(c telebot.Context) error

heandler for /verified_users_list

func VerifyHandler

func VerifyHandler(bot *telebot.Bot) func(c telebot.Context) error

Handler /verify

Types

This section is empty.

Jump to

Keyboard shortcuts

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