WebDocumentNoProxy

class pyrogram.raw.types.WebDocumentNoProxy

Remote document that can be downloaded without proxying through telegram

Constructor of WebDocument.

Details:
  • Layer: 223

  • ID: F9C8BCC6

Parameters:
  • url (str) – Document URL

  • size (int 32-bit) – File size

  • mime_type (str) – MIME type

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

TL Schema

webDocumentNoProxy#f9c8bcc6
url:string
size:int
mime_type:string
attributes:Vector<DocumentAttribute>

= WebDocument

Parameter Tree

WebDocumentNoProxy
├── 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

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