wotoGP

package
v0.0.0-...-f800b22 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PV_FLAG      = "pv"
	PRIVATE_FLAG = "private"
	DEL_FLAG     = "del"    // won't work if message is not replied
	DELETE_FLAG  = "delete" // won't work if message is not replied
)

the flags for the wotoMorse plugin. please notice that all flags should begin with prefex --, but in the pTools, this prefex will be removed.

Variables

This section is empty.

Functions

func BanHandler

func BanHandler(message *tgbot.Message, args pTools.Arg)

func GetAllMembers

func GetAllMembers(api *tgbot.BotAPI, chat *tgbot.ChatConfig)

func GetChatMember

func GetChatMember(api *tgbot.BotAPI, chat *tgbot.ChatConfig, id int64) *tgbot.ChatMember

func GetMeInGp

func GetMeInGp(api *tgbot.BotAPI, chat *tgbot.ChatConfig) *tgbot.ChatMember

func GetMember

func GetMember(api *tgbot.BotAPI, chat *tgbot.ChatConfig, user *tgbot.User) *tgbot.ChatMember

func GetTotalInfo

func GetTotalInfo(username string, md bool) string

func GetUserInfo

func GetUserInfo(username string) (u *tg.User, err error)

func InfoHandler

func InfoHandler(message *tgbot.Message, args pTools.Arg)

func IsAdmin

func IsAdmin(adminList []tgbot.ChatMember, id int64) bool

func IsValidUsername

func IsValidUsername(text string) bool

IsValidUsername will check if `text` is a valid username or not. please fix the string before using this function, for example you have to do TrimPrefix, TrimSuffix, etc...

func PingHandler

func PingHandler(message *tgbot.Message, args pTools.Arg)

Types

This section is empty.

Jump to

Keyboard shortcuts

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