Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Context = context.Background() Marshal *marshaler.Marshaler Manager *cache.ChainCache[any] )
Functions ¶
func GetAdminCacheUser ¶
GetAdminCacheUser searches for a specific user in the cached administrator list of a chat. Returns true and the MergedChatMember if the user is found as an admin, false and empty MergedChatMember if not found or cache miss.
Types ¶
type AdminCache ¶
func GetAdminCacheList ¶
func GetAdminCacheList(chatId int64) (bool, AdminCache)
GetAdminCacheList retrieves the cached administrator list for a specific chat. Returns true and the AdminCache if found in cache, false and empty AdminCache if cache miss.
func LoadAdminCache ¶
func LoadAdminCache(b *gotgbot.Bot, chatId int64) AdminCache
LoadAdminCache retrieves and caches the list of administrators for a given chat. It fetches the current administrators from Telegram API and stores them in cache with a 30-minute expiration. Returns an AdminCache struct containing the admin list.
Click to show internal directories.
Click to hide internal directories.