Data iterable.
Optionaloptions: ICachedOptions<Chat>Options for save cached.
The client that instantiated this
Adds or updates an entry in the cache.
The data to be added or updated in the cache.
Optionalcache: booleanOptionaloptions: { extras?: unknown[]; id?: string }Additional options.
The cached or newly created entry.
Returns a new Iterator object that contains the [key, value] pairs for each element in the collection.
An iterator object that can be used to iterate over the key-value pairs of the Collection.
Fetches a chat object from the API.
The ChatMember, Message, Chat or chat ID for fetch.
Optionaloptions: Omit<IFetchOptions, "fullInfo"> & { fullInfo?: false }Additional options.
The fetched chat object.
Fetches a chat object from the API.
The ChatMember, Message, Chat or chat ID for fetch.
Optionaloptions: Omit<IFetchOptions, "fullInfo"> & { fullInfo: true }Additional options.
The fetched ChatFullInfo object.
Fetches a chat object from the API.
The ChatMember, Message, Chat or chat ID for fetch.
Optionaloptions: IFetchOptionsAdditional options.
The fetched chat or full chat info object.
Fetches multiple chats at once.
Array of chats to fetch.
Optionaloptions: Omit<IFetchOptions, "fullInfo"> & { fullInfo?: false }Options for fetching.
Array of fetched chats (nulls for failed fetches).
Fetches multiple chats at once.
Array of chats to fetch.
Optionaloptions: Omit<IFetchOptions, "fullInfo"> & { fullInfo: true }Options for fetching.
Array of fetched chats (nulls for failed fetches).
Fetches multiple chats at once.
Array of chats to fetch.
Optionaloptions: IFetchOptionsOptions for fetching.
Array of fetched chats (nulls for failed fetches).
Removes an entry from the cache.
The ID of the entry to remove.
Whether the entry was successfully removed.
Resolves a chat object.
The chat instance, ChatMember, Message, Chat or ID.
Resolves the ID of an entry from the cache.
The ID or instance to resolve.
The resolved ID or null if not found.
The client instance.