libtd-ktx / kotlinx.telegram.coroutines / getMapThumbnailFile
getMapThumbnailFile
suspend fun TelegramFlow.getMapThumbnailFile(location: Location?, zoom: Int, width: Int, height: Int, scale: Int, chatId: Long): 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.
chatId - Identifier of a chat, in which the thumbnail will be shown. Use 0 if unknown.
Return File Represents a file.