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)
===23===
documentAttributeAnimated#11b58939 = DocumentAttribute;
documentAttributeAudio#051448e5 duration:int = DocumentAttribute;
documentAttributeFilename#15590068 file_name:string = DocumentAttribute;
documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute;
documentAttributeSticker#fb0a5727 = DocumentAttribute;
documentAttributeVideo#5910cccb duration:int w:int h:int = DocumentAttribute;
===45===
documentAttributeAudio#ded218e0 duration:int title:string performer:string = DocumentAttribute;
documentAttributeSticker#3a556302 alt:string stickerset:InputStickerSet = DocumentAttribute;
===46===
documentAttributeAudio#9852f9c6 flags:# duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute;
===66===
documentAttributeVideo#0ef02ce6 flags:# duration:int w:int h:int = DocumentAttribute;
API schema:
Method schema is available as of layer 188. Switch ยป
| 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 |