Raw.InputReplyToMessage

Raw.InputReplyToMessage

Reply to a message.

inputReplyToMessage#22c0f6d5 flags:# reply_to_msg_id:int top_msg_id:flags.0?int reply_to_peer_id:flags.1?InputPeer quote_text:flags.2?string quote_entities:flags.3?Vector<MessageEntity> quote_offset:flags.4?int = InputReplyTo;
export namespace Raw {
  export class InputReplyToMessage {
    constructor(params: {
      replyToMsgId: number;
      topMsgId?: number;
      replyToPeerId?: Raw.TypeInputPeer;
      quoteText?: string;
      quoteEntities?: Array<Raw.TypeMessageEntity>;
      quoteOffset?: number;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x22c0f6d5

Property

  • replyToMsgId : number

    The message id to reply to.

  • topMsgId : number or undefined

    This field must contain the topic id only when replying to messages in forum topics different from the “general” topic (i.e. replyToMsgId is set and replyToMsgId != topicid and topicid != 1). if the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the “general” topic.

  • replyToPeerId : Raw.TypeInputPeer or undefined

    Used to reply to messages sent to another chat (specified here), can only be used for non-protected chats and messages.

  • quoteText : string or undefined

    Used to quote-reply to only a certain section (specified here) of the original message. the maximum utf-8 length for quotes is specified in the quoteLengthMax config key.

  • quoteEntities : Array of Raw.TypeMessageEntity or undefined

    Message entities for styled text from the quoteText field.

  • quoteOffset : number or undefined

    Offset of the message quoteText within the original message (in utf-16 code units).