Documentation ¶
Index ¶
- Constants
- func BanHandler(message *tgbot.Message, args pTools.Arg)
- func GetAllMembers(api *tgbot.BotAPI, chat *tgbot.ChatConfig)
- func GetChatMember(api *tgbot.BotAPI, chat *tgbot.ChatConfig, id int64) *tgbot.ChatMember
- func GetMeInGp(api *tgbot.BotAPI, chat *tgbot.ChatConfig) *tgbot.ChatMember
- func GetMember(api *tgbot.BotAPI, chat *tgbot.ChatConfig, user *tgbot.User) *tgbot.ChatMember
- func GetTotalInfo(username string, md bool) string
- func GetUserInfo(username string) (u *tg.User, err error)
- func InfoHandler(message *tgbot.Message, args pTools.Arg)
- func IsAdmin(adminList []tgbot.ChatMember, id int64) bool
- func IsValidUsername(text string) bool
- func PingHandler(message *tgbot.Message, args pTools.Arg)
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 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 IsValidUsername ¶
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...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.