Raw.messages.SendEncrypted
Sends a text message to a secret chat.
messages.sendEncrypted#44fa7a15 flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;export namespace Raw {
export namespace messages {
export class SendEncrypted {
constructor(params: {
silent?: boolean;
peer: Raw.TypeInputEncryptedChat;
randomId: bigint;
data: Buffer;
}) {}
}
}
}This is a function constructor, you can use it as method when call invoke
Layer: 201
Constructor ID: 0x44fa7a15
Property
silent: boolean or undefinedSend encrypted message without a notification
peer: Raw.TypeInputEncryptedChatSecret chat id
randomId: bigintUnique client message id, necessary to avoid message resending
data: BufferTl-serialization of decryptedmessage type, encrypted with a key that was created during chat initialization