Package it.tdlight.jni
Class TdApi.GetMapThumbnailFile
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.GetMapThumbnailFile
- Enclosing class:
- TdApi
public static class TdApi.GetMapThumbnailFile extends TdApi.Function
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
Fields Modifier and Type Field Description long
chatId
Identifier of a chat, in which the thumbnail will be shown.static int
CONSTRUCTOR
int
height
Map height in pixels before applying scale; 16-1024.TdApi.Location
location
Location of the map center.int
scale
Map scale; 1-3.int
width
Map width in pixels before applying scale; 16-1024.int
zoom
Map zoom level; 13-20. -
Constructor Summary
Constructors Constructor Description GetMapThumbnailFile()
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)
Returns information about a file with a map thumbnail in PNG format.GetMapThumbnailFile(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
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 CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
GetMapThumbnailFile
public GetMapThumbnailFile()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)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 Location of the map center.zoom
- int Map zoom level; 13-20.width
- int Map width in pixels before applying scale; 16-1024.height
- int Map height in pixels before applying scale; 16-1024.scale
- int Map scale; 1-3.chatId
- long Identifier of a chat, in which the thumbnail will be shown. Use 0 if unknown.
-
GetMapThumbnailFile
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-