InputWebDocument

class pyrogram.raw.types.InputWebDocument

The document

Constructor of InputWebDocument.

Details:
  • Layer: 223

  • ID: 9BED434D

Parameters:
  • url (str) – Remote document URL to be downloaded using the appropriate method

  • size (int 32-bit) – Remote file size

  • mime_type (str) – Mime type

  • attributes (List of DocumentAttribute) – Attributes for media types

TL Schema

inputWebDocument#9bed434d
url:string
size:int
mime_type:string
attributes:Vector<DocumentAttribute>

= InputWebDocument

Parameter Tree

InputWebDocument
├── urlstring
├── sizeint
├── mime_typestring
└── attributesVector < DocumentAttribute >
│ ├── wint
│ └── hint
│ ├── masktrue (optional)
│ ├── altstring
│ ├── stickersetInputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ │ ├── idlong
│ │ │ └── access_hashlong
│ │ ├── InputStickerSetShortName
│ │ │ └── short_namestring
│ │ ├── InputStickerSetDice
│ │ │ └── emoticonstring
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ └── mask_coordsMaskCoords (optional)
│ └── MaskCoords
│ ├── nint
│ ├── xdouble
│ ├── ydouble
│ └── zoomdouble
│ ├── round_messagetrue (optional)
│ ├── supports_streamingtrue (optional)
│ ├── nosoundtrue (optional)
│ ├── durationdouble
│ ├── wint
│ ├── hint
│ ├── preload_prefix_sizeint (optional)
│ ├── video_start_tsdouble (optional)
│ └── video_codecstring (optional)
│ ├── voicetrue (optional)
│ ├── durationint
│ ├── titlestring (optional)
│ ├── performerstring (optional)
│ └── waveformbytes (optional)
│ └── file_namestring
├── freetrue (optional)
├── text_colortrue (optional)
├── altstring
└── stickersetInputStickerSet
│ ├── idlong
│ └── access_hashlong
│ └── short_namestring
│ └── emoticonstring

Example

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