Class TdApi.GetMapThumbnailFile
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.File>
dev.voroby.springframework.telegram.client.TdApi.GetMapThumbnailFile
- Enclosing class:
- TdApi
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded.
Returns File
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of a chat in which the thumbnail will be shown.static final int
Identifier uniquely determining type of the object.int
Map height in pixels before applying scale; 16-1024.Location of the map center.int
Map scale; 1-3.int
Map width in pixels before applying scale; 16-1024.int
Map zoom level; 13-20. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which returns information about a file with a map thumbnail in PNG format.GetMapThumbnailFile
(TdApi.Location location, int zoom, int width, int height, int scale, long chatId) Creates a function, which returns information about a file with a map thumbnail in PNG format. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
location
Location of the map center. -
zoom
public int zoomMap zoom level; 13-20. -
width
public int widthMap width in pixels before applying scale; 16-1024. -
height
public int heightMap height in pixels before applying scale; 16-1024. -
scale
public int scaleMap scale; 1-3. -
chatId
public long chatIdIdentifier of a chat in which the thumbnail will be shown. Use 0 if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetMapThumbnailFile
public GetMapThumbnailFile()Default constructor for a 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.Returns
File
-
GetMapThumbnailFile
public GetMapThumbnailFile(TdApi.Location location, int zoom, int width, int height, int scale, long chatId) Creates a 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.Returns
File
- 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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-