MessageMediaDocument
- class pyrogram.raw.types.MessageMediaDocument
Document (video, audio, voice, sticker, any media type except photo)
Constructor of
MessageMedia.- Details:
Layer:
223ID:
52D8CCD9
- Parameters:
nopremium (
bool, optional) – Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.spoiler (
bool, optional) – Whether this media should be hidden behind a spoiler warningvideo (
bool, optional) – Whether this is a video.round (
bool, optional) – Whether this is a round video.voice (
bool, optional) – Whether this is a voice message.document (
Document, optional) – Attached documentalt_documents (List of
Document, optional) – Videos only, contains alternative qualities of the video.video_cover (
Photo, optional) – Custom video cover.video_timestamp (
int32-bit, optional) – Start playing the video at the specified timestamp (seconds).ttl_seconds (
int32-bit, optional) – Time to live of self-destructing document
- Functions:
This object can be returned by 2 functions.
Upload a file and associate it to a chat (without actually sending it to the chat)
Upload a media file associated with an imported chat, click here for more info ».
TL Schema
messageMediaDocument#52d8ccd9
flags:#
nopremium:flags.3?true
spoiler:flags.4?true
video:flags.6?true
round:flags.7?true
voice:flags.8?true
document:flags.0?Document
alt_documents:flags.5?Vector<Document>
video_cover:flags.9?Photo
video_timestamp:flags.10?int
ttl_seconds:flags.2?int
= MessageMedia
Parameter Tree
true (optional)true (optional)true (optional)true (optional)true (optional)Document (optional)DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intVector < DocumentAttribute >intintDocumentAttributeStickertrue (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftsMaskCoords (optional)MaskCoordsDocumentAttributeVideotrue (optional)true (optional)true (optional)doubleintintint (optional)double (optional)string (optional)DocumentAttributeAudiotrue (optional)intstring (optional)string (optional)bytes (optional)stringtrue (optional)true (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetDiceInputStickerSetTonGiftsVector < Document > (optional)DocumentEmptylongDocumentlonglongbytesintstringlongVector < PhotoSize > (optional)PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intVector < DocumentAttribute >intintDocumentAttributeStickertrue (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftsMaskCoords (optional)MaskCoordsDocumentAttributeVideotrue (optional)true (optional)true (optional)doubleintintint (optional)double (optional)string (optional)DocumentAttributeAudiotrue (optional)intstring (optional)string (optional)bytes (optional)stringtrue (optional)true (optional)stringInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetDiceInputStickerSetTonGiftsPhoto (optional)PhotoEmptylongPhototrue (optional)longlongbytesintVector < PhotoSize >PhotoSizeEmptystringPhotoSizestringintintintPhotoCachedSizestringintintbytesPhotoStrippedSizestringbytesPhotoSizeProgressivestringintintVector < int >PhotoPathSizestringbytesVector < VideoSize > (optional)VideoSizestringintintintdouble (optional)VideoSizeEmojiMarkuplongVector < int >VideoSizeStickerMarkupInputStickerSetInputStickerSetEmptyInputStickerSetIDInputStickerSetShortNameInputStickerSetAnimatedEmojiInputStickerSetDiceInputStickerSetAnimatedEmojiAnimationsInputStickerSetPremiumGiftsInputStickerSetEmojiGenericAnimationsInputStickerSetEmojiDefaultStatusesInputStickerSetEmojiDefaultTopicIconsInputStickerSetTonGiftslongVector < int >intint (optional)int (optional)Example
MessageMediaDocument(
)