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

1.2 KiB

title description image
encryptedMessage Encrypted message https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: encryptedMessage

Back to constructors index

Encrypted message

Attributes:

Name Type Required Description
chat_id int Yes Chat ID
date int Yes Date
decrypted_message DecryptedMessage Yes Decrypted message
file EncryptedFile Optional File

Type: EncryptedMessage

Example:

$encryptedMessage = ['_' => 'encryptedMessage', 'chat_id' => int, 'date' => int, 'decrypted_message' => DecryptedMessage, 'file' => EncryptedFile];

PWRTelegram json-encoded version:

{"_": "encryptedMessage", "chat_id": int, "date": int, "decrypted_message": DecryptedMessage, "file": EncryptedFile}

Or, if you're into Lua:

encryptedMessage={_='encryptedMessage', chat_id=int, date=int, decrypted_message=DecryptedMessage, file=EncryptedFile}