DocumentAttribute#

class pyrogram.raw.base.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).

Constructors:

This base type has 8 constructors available.

DocumentAttributeAnimated

Defines an animated GIF.

DocumentAttributeAudio

Represents an audio file.

DocumentAttributeCustomEmoji

Info about a custom emoji.

DocumentAttributeFilename

A simple document with a file name.

DocumentAttributeHasStickers

Whether the current document has stickers attached.

DocumentAttributeImageSize

Defines the width and height of an image uploaded as document.

DocumentAttributeSticker

Defines a sticker.

DocumentAttributeVideo

Defines a video.