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
locationLocation of the map center
zoomMap zoom level; 13-20
widthMap width in pixels before applying scale; 16-1024
heightMap height in pixels before applying scale; 16-1024
scaleMap scale; 1-3
chatIdIdentifier of a chat, in which the thumbnail will be shown. Use 0 if unknown
View on GitHub
Install in Dash
GetMapThumbnailFile Structure Reference