MadelineProtoDocs/docs/API_docs/constructors/decryptedMessageMediaDocument_45.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.7 KiB

title description image
decryptedMessageMediaDocument Decrypted message media document https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: decryptedMessageMediaDocument_45

Back to constructors index

Decrypted message media document

Attributes:

Name Type Required Description
thumb bytes Yes Thumbnail
thumb_w int Yes Thumbnail w
thumb_h int Yes Thumbnail h
mime_type string Yes Mime type
size int Yes Size
attributes Array of DocumentAttribute Yes Attributes
caption string Yes Caption

Type: DecryptedMessageMedia

Example:

$decryptedMessageMediaDocument_45 = ['_' => 'decryptedMessageMediaDocument', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'mime_type' => 'string', 'size' => int, 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string'];

PWRTelegram json-encoded version:

{"_": "decryptedMessageMediaDocument", "thumb": {"_": "bytes", "bytes":"base64 encoded bytes"}, "thumb_w": int, "thumb_h": int, "mime_type": "string", "size": int, "attributes": [DocumentAttribute], "caption": "string"}

Or, if you're into Lua:

decryptedMessageMediaDocument_45={_='decryptedMessageMediaDocument', thumb='bytes', thumb_w=int, thumb_h=int, mime_type='string', size=int, attributes={DocumentAttribute}, caption='string'}