Skip to content

getMapThumbnailFile

Function · TDLib 1.8.67 · d1085f9c

Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded

getMapThumbnailFile(
  location: Location,
  zoom: int32,
  width: int32,
  height: int32,
  scale: int32,
  chat_id: int53
) → File

location

Location

Location of the map center

zoom

int32

Map zoom level; 13-20

width

int32

Map width in pixels before applying scale; 16-1024

height

int32

Map height in pixels before applying scale; 16-1024

scale

int32

Map scale; 1-3

chat_id

int53

Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown