Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on)
documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute;
documentAttributeAnimated#11b58939 = DocumentAttribute;
documentAttributeSticker#fb0a5727 = DocumentAttribute;
documentAttributeVideo#5910cccb duration:int w:int h:int = DocumentAttribute;
documentAttributeAudio#51448e5 duration:int = DocumentAttribute;
documentAttributeFilename#15590068 file_name:string = DocumentAttribute;
| Constructor | Description |
|---|---|
| documentAttributeImageSize | Defines the width and height of an image uploaded as document |
| documentAttributeAnimated | Defines an animated GIF |
| documentAttributeSticker | Defines a sticker |
| documentAttributeVideo | Defines a video |
| documentAttributeAudio | Represents an audio file |
| documentAttributeFilename | A simple document with a file name |
| documentAttributeHasStickers | Whether the current document has stickers attached |
| documentAttributeCustomEmoji | Info about a custom emoji |