chat_status

package
v0.0.0-...-531ab02 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanDelete

func CanDelete(chat *ext.Chat, botId int) bool

func CanPin

func CanPin(bot ext.Bot, chat *ext.Chat) bool

func CanPromote

func CanPromote(bot ext.Bot, chat *ext.Chat) bool

func CanRestrict

func CanRestrict(bot ext.Bot, chat *ext.Chat) bool

func IsBotAdmin

func IsBotAdmin(chat *ext.Chat, member *ext.ChatMember) bool

func IsUserAdmin

func IsUserAdmin(chat *ext.Chat, userId int) bool

func IsUserBanProtected

func IsUserBanProtected(chat *ext.Chat, userId int, member *ext.ChatMember) bool

func IsUserInChat

func IsUserInChat(chat *ext.Chat, userId int) bool

func RequireBotAdmin

func RequireBotAdmin(chat *ext.Chat, msg *ext.Message) bool

func RequireUserAdmin

func RequireUserAdmin(chat *ext.Chat, msg *ext.Message, userId int) bool

Types

type Cache

type Cache struct {
	Admin []string `json:"admin"`
}

Jump to

Keyboard shortcuts

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