WebDocument
- class pyrogram.raw.types.WebDocument
Remote document
Constructor of
WebDocument.- Details:
Layer:
223ID:
1C570ED1
- Parameters:
url (
str) – Document URLaccess_hash (
int64-bit) – Access hashsize (
int32-bit) – File sizemime_type (
str) – MIME typeattributes (List of
DocumentAttribute) – Attributes for media types
TL Schema
webDocument#1c570ed1
url:string
access_hash:long
size:int
mime_type:string
attributes:Vector<DocumentAttribute>
= WebDocument
Parameter Tree
WebDocument
├── url →
string├── access_hash →
long├── size →
int├── mime_type →
string└── attributes →
Vector < DocumentAttribute >│ ├── w →
int│ └── h →
int│ ├── mask →
true (optional)│ ├── alt →
string│ ├── stickerset →
InputStickerSet│ │ ├──
InputStickerSetEmpty│ │ ├──
InputStickerSetID│ │ │ ├── id →
long│ │ │ └── access_hash →
long│ │ ├──
InputStickerSetShortName│ │ │ └── short_name →
string│ │ ├──
InputStickerSetAnimatedEmoji│ │ ├──
InputStickerSetDice│ │ │ └── emoticon →
string│ │ ├──
InputStickerSetPremiumGifts│ │ └──
InputStickerSetTonGifts│ └── mask_coords →
MaskCoords (optional)│ └──
MaskCoords│ ├── n →
int│ ├── x →
double│ ├── y →
double│ └── zoom →
double│ ├── round_message →
true (optional)│ ├── supports_streaming →
true (optional)│ ├── nosound →
true (optional)│ ├── duration →
double│ ├── w →
int│ ├── h →
int│ ├── preload_prefix_size →
int (optional)│ ├── video_start_ts →
double (optional)│ └── video_codec →
string (optional)│ ├── voice →
true (optional)│ ├── duration →
int│ ├── title →
string (optional)│ ├── performer →
string (optional)│ └── waveform →
bytes (optional)│ └── file_name →
string├── free →
true (optional)├── text_color →
true (optional)├── alt →
string└── stickerset →
InputStickerSet│ ├── id →
long│ └── access_hash →
long│ └── short_name →
string│ └── emoticon →
stringExample
WebDocument(
url="https://google.com",
access_hash=0,
size=0,
mime_type="text",
attributes=[
DocumentAttributeImageSize(
w=0,
h=0
)
],
)