Data iterable.
Optionaloptions: ICachedOptions<User>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 user by ID, optionally caching the result.
The ChatMember, Message, or user ID to fetch.
Optionaloptions: Omit<IFetchOptions, "fullInfo"> & { fullInfo?: false }Options for fetching.
The fetched User instance.
Fetches a user by ID, optionally caching the result.
The ChatMember, Message, or user ID to fetch.
Optionaloptions: Omit<IFetchOptions, "fullInfo"> & { fullInfo: true }Options for fetching.
The fetched ChatFullInfo instance.
Fetches a user by ID, optionally caching the result.
The ChatMember, Message, or user ID to fetch.
Optionaloptions: IFetchOptionsOptions for fetching.
The fetched User or ChatFullInfo instance.
Fetches multiple users at once.
Array of users to fetch.
Optionaloptions: Omit<IFetchOptions, "fullInfo"> & { fullInfo?: false }Options for fetching.
Array of fetched users (nulls for failed fetches).
Fetches multiple users at once.
Array of users to fetch.
Optionaloptions: Omit<IFetchOptions, "fullInfo"> & { fullInfo: true }Options for fetching.
Array of fetched users (nulls for failed fetches).
Fetches multiple users at once.
Array of users to fetch.
Optionaloptions: IFetchOptionsOptions for fetching.
Array of fetched users (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 user from a ChatMember, Message, User or user ID.
The ChatMember, Message, User or user ID to resolve.
The resolved User instance or null if not found.
Resolves the user ID from a ChatMember, Message, User or user ID.
The ChatMember, Message, User or user ID to resolve.
The resolved user ID or null if not found.
The client instance.