Raw.DecryptedMessage45
Contents of an encrypted message.
decryptedMessage#36b091de flags:# random_id:long ttl:int message:string media:flags.9?DecryptedMessageMedia entities:flags.7?Vector<MessageEntity> via_bot_name:flags.11?string reply_to_random_id:flags.3?long = DecryptedMessage;
export namespace Raw {
export class DecryptedMessage45 {
constructor(params: {
randomId: bigint;
ttl: number;
message: string;
media?: Raw.TypeDecryptedMessageMedia;
entities?: Array<Raw.TypeMessageEntity>;
viaBotName?: string;
replyToRandomId?: bigint;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x36b091de
Property
randomId
: bigintRandom message id, assigned by the author of message.must be equal to the id passed to sending method.
ttl
: numberMessage lifetime. has higher priority than decryptedmessageactionsetmessagettl.parameter added in layer 17.
message
: stringMessage text
media
: Raw.TypeDecryptedMessageMedia or undefinedMedia content
entities
: Array of Raw.TypeMessageEntity or undefinedMessage entities for styled text (parameter added in layer 45)
viaBotName
: string or undefinedSpecifies the id of the inline bot that generated the message (parameter added in layer 45)
replyToRandomId
: bigint or undefinedRandom message id of the message this message replies to (parameter added in layer 45)