Data iterable.
Optional
options: 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.
Optional
cache: booleanOptional
__namedParameters: { extras?: unknown[]; id?: string }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.
Optional
options: Omit<IFetchOptions, "fullInfo"> & { fullInfo?: false }Additional options.
The fetched chat object.
Fetches a chat object from the API.
Optional
options: Omit<IFetchOptions, "fullInfo"> & { fullInfo: true }Additional options.
The fetched ChatFullInfo object.
Fetches a chat object from the API.
Optional
options: IFetchOptionsAdditional options.
The fetched chat or full chat info object.
Resolves a chat object.
The chat instance, chat member, message, or ID.
The client instance.