Layer 220
InputWebFileAudioAlbumThumbLocation
Used to download an album cover for any music file using upload. get Web File, see the webfile docs for more info.
constructor
inputWebFileAudioAlbumThumbLocation#f46fe924 flags:# small:flags.2?true document:flags.0?InputDocument title:flags.1?string performer:flags.1?string = InputWebFileLocation;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Small | flags.2?true | Used to return a thumbnail with 100 x 100 resolution (instead of the default 600 x 600 ) |
| Document | flags.0?InputDocument | The audio file in question: must NOT be provided in secret chats, provide the title and performer fields instead. |
| Title | flags.1?string | Song title: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits. |
| Performer | flags.1?string | Song performer: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits. |
Returns
InputWebFileLocationGogram Example
// Creating InputWebFileAudioAlbumThumbLocation constructor obj := &tg.InputWebFileAudioAlbumThumbLocation{ // Optional fields: // Small: true, // Document: &tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}, // Title: "...", // Performer: "...", }