Raw.InputBotInlineMessageMediaWebPage

Raw.InputBotInlineMessageMediaWebPage

Specifies options that will be used to generate the link preview for the message, or even a standalone link preview without an attached message.

inputBotInlineMessageMediaWebPage#bddcc510 flags:# invert_media:flags.3?true force_large_media:flags.4?true force_small_media:flags.5?true optional:flags.6?true message:string entities:flags.1?Vector<MessageEntity> url:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;
export namespace Raw {
  export class InputBotInlineMessageMediaWebPage {
    constructor(params: {
      invertMedia?: boolean;
      forceLargeMedia?: boolean;
      forceSmallMedia?: boolean;
      optional?: boolean;
      message: string;
      entities?: Array<Raw.TypeMessageEntity>;
      url: string;
      replyMarkup?: Raw.TypeReplyMarkup;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0xbddcc510

Property

  • invertMedia : boolean or undefined

    If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

  • forceLargeMedia : boolean or undefined

    If set, specifies that a large media preview should be used.

  • forceSmallMedia : boolean or undefined

    If set, specifies that a small media preview should be used.

  • optional : boolean or undefined

    If not set, a webpageNotFound rpc error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a messageEmpty will be emitted, instead).

  • message : string

    The message, can be empty.

  • entities : Array of Raw.TypeMessageEntity or undefined

    Message entities for styled text

  • url : string

    The url to use for the link preview.

  • replyMarkup : Raw.TypeReplyMarkup or undefined

    Inline keyboard