Optional
attr2: RawDocumentAttributeImageSize | RawDocumentAttributeVideoReadonly
attrOptional
Readonly
attr2Optional
Readonly
dcDC ID of the file, when available
Optional
Readonly
fileFile size in bytes, when available
Readonly
locationLocation of the file.
Either a TL object declaring remote file location, a Buffer containing actual file content (for stripped thumbnails and vector previews), or a function that will return either of those.
When a function is passed, it will be lazily resolved the first time downloading the file.
Readonly
rawReadonly
typeType of the media (for use in a tagged union)
Whether this custom emoji can be used by non-premium users.
false
if this is not a custom emoji.
Not sure if there are any such stickers currently.
Date the document was sent
Primary emoji associated with this sticker, that is displayed in dialogs list.
If there is none, empty string is returned.
Note: This only contains at most one emoji. Some stickers have multiple associated emojis, but only one is returned here. This is Telegram's limitation! Use getAllEmojis instead.
For custom emojis, this alt should be used as a fallback text that will be "behind" the custom emoji entity.
Get TDLib and Bot API compatible File ID representing this document.
Original file name, extracted from the document attributes.
Whether this sticker has an associated public sticker set.
Sticker height in pixels
Input document TL object generated from this object, to be used with methods that use it
Input media TL object generated from this object, to be used inside InputMediaLike and TelegramClient.sendMedia
Input sticker set that it associated with this sticker, if available.
Whether this sticker is a premium sticker (has premium fullscreen animation)
Whether this sticker is a valid sticker.
If it is not, then this is probably a WEBP photo that Telegram treats as a sticker.
Position where this mask should be placed
File MIME type, as defined by the sender.
Type of the file representing the sticker
Type of the sticker
Get a unique File ID representing this document.
Sticker width in pixels
Protected
_fileGet a thumbnail by its type.
Thumbnail types are described in the Telegram docs, and are also available as static members of Thumbnail for convenience.
Thumbnail type
A sticker