GetMapThumbnailFile
public struct GetMapThumbnailFile : Codable, Equatable, TDFunction
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded
-
Undocumented
Declaration
Swift
public typealias Result = File
-
Location of the map center
Declaration
Swift
public let location: Location
-
Map zoom level; 13-20
Declaration
Swift
public let zoom: Int32
-
Map width in pixels before applying scale; 16-1024
Declaration
Swift
public let width: Int32
-
Map height in pixels before applying scale; 16-1024
Declaration
Swift
public let height: Int32
-
Map scale; 1-3
Declaration
Swift
public let scale: Int32
-
Identifier of a chat, in which the thumbnail will be shown. Use 0 if unknown
Declaration
Swift
public let chatId: Int53
-
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded
Declaration
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