Raw.messages.SendEncryptedFile
Sends a message with a file attachment to a secret chat
messages.sendEncryptedFile#5559481d flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage;
export namespace Raw {
export namespace messages {
export class SendEncryptedFile {
constructor(params: {
silent?: boolean;
peer: Raw.TypeInputEncryptedChat;
randomId: bigint;
data: Buffer;
file: Raw.TypeInputEncryptedFile;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x5559481d
Property
silent
: boolean or undefinedWhether to send the file without triggering a notification
peer
: Raw.TypeInputEncryptedChatSecret chat id
randomId
: bigintUnique client message id necessary to prevent message resending
data
: BufferTl-serialization of decryptedmessage type, encrypted with a key generated during chat initialization
file
: Raw.TypeInputEncryptedFileFile attachment for the secret chat