MadelineProtoDocs/old_docs/API_docs_v18/constructors/encryptedMessage.md
2020-06-16 17:50:25 +02:00

1.0 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 ID of encrypted chat
date int Yes Date of sending
decrypted_message DecryptedMessage Yes
file EncryptedFile Optional Attached encrypted file

Type: EncryptedMessage

Example:

$encryptedMessage = ['_' => '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}