InputWebFileAudioAlbumThumbLocation

class pyrogram.raw.types.InputWebFileAudioAlbumThumbLocation

Used to download an album cover for any music file using upload.getWebFile, see the webfile docs for more info ».

Constructor of InputWebFileLocation.

Details:
  • Layer: 223

  • ID: F46FE924

Parameters:
  • small (bool, optional) – Used to return a thumbnail with 100x100 resolution (instead of the default 600x600)

  • document (InputDocument, optional) – The audio file in question: must NOT be provided in secret chats, provide the title and performer fields instead.

  • title (str, optional) – Song title: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits.

  • performer (str, optional) – Song performer: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits.

TL Schema

inputWebFileAudioAlbumThumbLocation#f46fe924
flags:#
small:flags.2?true
document:flags.0?InputDocument
title:flags.1?string
performer:flags.1?string

= InputWebFileLocation

Parameter Tree

InputWebFileAudioAlbumThumbLocation
├── smalltrue (optional)
├── documentInputDocument (optional)
│ ├── InputDocumentEmpty
│ └── InputDocument
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
├── titlestring (optional)
└── performerstring (optional)

Example

InputWebFileAudioAlbumThumbLocation(
)