Documentation ¶
Index ¶
- func CanDelete(chat *ext.Chat, botId int) bool
- func CanPin(bot ext.Bot, chat *ext.Chat) bool
- func CanPromote(bot ext.Bot, chat *ext.Chat) bool
- func CanRestrict(bot ext.Bot, chat *ext.Chat) bool
- func IsBotAdmin(chat *ext.Chat, member *ext.ChatMember) bool
- func IsUserAdmin(chat *ext.Chat, userId int) bool
- func IsUserBanProtected(chat *ext.Chat, userId int, member *ext.ChatMember) bool
- func IsUserInChat(chat *ext.Chat, userId int) bool
- func RequireBotAdmin(chat *ext.Chat, msg *ext.Message) bool
- func RequireUserAdmin(chat *ext.Chat, msg *ext.Message, userId int) bool
- type Cache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBotAdmin ¶
func IsBotAdmin(chat *ext.Chat, member *ext.ChatMember) bool
func IsUserBanProtected ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.