Layer 224
EncryptedMessageObj
Encrypted message.
constructor
encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage;
Parameters
| Name | Type | Description |
|---|---|---|
| RandomId | long | Random message ID, assigned by the author of message |
| ChatId | int | ID of encrypted chat |
| Date | int | Date of sending |
| Bytes | bytes | TL-serialization of Decrypted Message type, encrypted with the key created at chat initialization |
| File | EncryptedFile | Attached encrypted file |
Returns
EncryptedMessageGogram Example
// Creating EncryptedMessageObj constructor obj := &tg.EncryptedMessageObj{ RandomId: int64(1234567890), ChatId: 42, Date: 42, Bytes: []byte{0x01, 0x02, 0x03}, File: &tg.EncryptedFile{}, }