DocumentAttribute

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)

Method schema is available as of layer 188. Switch »

Constructors

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