Raw.InputMediaWebPage

Raw.InputMediaWebPage

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

inputMediaWebPage#c21b8849 flags:# force_large_media:flags.0?true force_small_media:flags.1?true optional:flags.2?true url:string = InputMedia;
export namespace Raw {
  export class InputMediaWebPage {
    constructor(params: {
      forceLargeMedia?: boolean;
      forceSmallMedia?: boolean;
      optional?: boolean;
      url: string;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0xc21b8849

Property

  • 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).

  • url : string

    The url to use for the link preview.