libtd-ktx / kotlinx.telegram.extensions / ChatKtx / getMapThumbnailFile
getMapThumbnailFile
open suspend fun
Chat
.getMapThumbnailFile(location:
Location
?, zoom:
Int
, width:
Int
, height:
Int
, scale:
Int
):
File
Suspend function, which returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded.
Parameters
location
- Location of the map center.
zoom
- Map zoom level; 13-20.
width
- Map width in pixels before applying scale; 16-1024.
height
- Map height in pixels before applying scale; 16-1024.
scale
- Map scale; 1-3.
Return TdApi.File Represents a file.