cache

package
v0.0.0-...-f0180c5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Context = context.Background()
	Marshal *marshaler.Marshaler
	Manager *cache.ChainCache[any]
)

Functions

func GetAdminCacheUser

func GetAdminCacheUser(chatId, userId int64) (bool, gotgbot.MergedChatMember)

GetAdminCacheUser gets the admin cache for the chat.

func InitCache

func InitCache()

InitCache initializes the cache.

Types

type AdminCache

type AdminCache struct {
	ChatId   int64
	UserInfo []gotgbot.MergedChatMember
	Cached   bool
}

func GetAdminCacheList

func GetAdminCacheList(chatId int64) (bool, AdminCache)

GetAdminCacheList gets the admin cache for the chat.

func LoadAdminCache

func LoadAdminCache(b *gotgbot.Bot, chat *gotgbot.Chat) AdminCache

LoadAdminCache loads the admin cache for the chat.

Jump to

Keyboard shortcuts

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