Data about the represents a sticker
True, if the sticker is animated
OptionalanimationFor premium regular stickers, premium animation for the sticker
OptionalemojiEmoji associated with the sticker
OptionalemojiFor custom emoji stickers, unique identifier of the custom emoji
Sticker height
The unique identifier for this file
OptionalmaskFor mask stickers, the position where the mask should be placed
The path to the file on the Telegram server, if available
OptionalsetName of the sticker set to which the sticker belongs
The size of the file in bytes, if available
OptionalthumbnailSticker thumbnail in the .WEBP or .JPG format
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.
The unique identifier for this file, which is supposed to be consistent across different bots
True, if the sticker is a video sticker
Sticker width
The client that instantiated this
Gets the URL to access the file on the Telegram server.
Protected_Protected_ProtectedPatches the current instance with new data
The data to patch the instance with
The patched data
Protected_ProtectedUpdates the current instance with new data and returns a clone of the updated instance
The data to update the instance with
A clone of the updated instance
Downloads the file from the Telegram server.
A promise that resolves with the file data as a Buffer.
Fetch about the file
Flatten an object. Any properties that are collections will get converted to an array of keys.
OptionalpropsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
Returns the id instance Chat, User, ChatMember and other
Writes the file to the specified path.
The path where the file should be written.
OptionalwriteType: "promise"The type of write operation.
Optionaloptions: { encoding?: BufferEncoding; flag?: string; signal?: AbortSignal }Additional options for writing the file.
A promise that resolves when the file has been written.
Writes the file to the specified path.
The path where the file should be written.
The type of write operation.
Optionaloptions: {Additional options for writing the file.
A promise that resolves when the file has been written.
Writes the file to the specified path.
The path where the file should be written.
OptionalwriteType: "stream" | "promise"The type of write operation.
Optionaloptions: undefinedAdditional options for writing the file.
A promise that resolves when the file has been written.
The client that instantiated this