InputMediaWebPage
- class pyrogram.raw.types.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.
Constructor of
InputMedia.- Details:
Layer:
223ID:
C21B8849
- Parameters:
url (
str) – The URL to use for the link preview.force_large_media (
bool, optional) – If set, specifies that a large media preview should be used.force_small_media (
bool, optional) – If set, specifies that a small media preview should be used.optional (
bool, optional) – If not set, a WEBPAGE_NOT_FOUND 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 MESSAGE_EMPTY will be emitted, instead).
TL Schema
inputMediaWebPage#c21b8849
flags:#
force_large_media:flags.0?true
force_small_media:flags.1?true
optional:flags.2?true
url:string
= InputMedia
Parameter Tree
InputMediaWebPage
├── force_large_media →
true (optional)├── force_small_media →
true (optional)├── optional →
true (optional)└── url →
stringExample
InputMediaWebPage(
url="https://google.com",
)