WebDocument

class pyrogram.raw.types.WebDocument

Remote document

Constructor of WebDocument.

Details:
  • Layer: 227

  • ID: 1C570ED1

Parameters:
  • url (str) – Document URL

  • access_hash (int 64-bit) – Access hash

  • size (int 32-bit) – File size

  • mime_type (str) – MIME type

  • attributes (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
│ │ ├── 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 → string

Example

WebDocument(
    url="https://google.com",
    access_hash=0,
    size=0,
    mime_type="text",
    attributes=[
            DocumentAttributeImageSize(
                w=0,
                h=0
            )
        ],
)