Layer 220
EncryptedMessage
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 EncryptedMessage constructor obj := &tg.EncryptedMessage{ RandomId: int64(0), ChatId: 0, Date: 0, Bytes: []byte{}, File: &tg.EncryptedFile{}, }