Raw.DecryptedMessage45

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 : bigint

    Random message id, assigned by the author of message.must be equal to the id passed to sending method.

  • ttl : number

    Message lifetime. has higher priority than decryptedmessageactionsetmessagettl.parameter added in layer 17.

  • message : string

    Message text

  • media : Raw.TypeDecryptedMessageMedia or undefined

    Media content

  • entities : Array of Raw.TypeMessageEntity or undefined

    Message entities for styled text (parameter added in layer 45)

  • viaBotName : string or undefined

    Specifies the id of the inline bot that generated the message (parameter added in layer 45)

  • replyToRandomId : bigint or undefined

    Random message id of the message this message replies to (parameter added in layer 45)