TDLib
Loading...
Searching...
No Matches
getMapThumbnailFile Class Referencefinal

Inherits Function.

Description

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 object_ptr<File>.

Public Types

using ReturnType = object_ptr<file>
 Typedef for the type returned by the function.

Public Member Functions

 getMapThumbnailFile ()
 getMapThumbnailFile (object_ptr< location > &&location_, int32 zoom_, int32 width_, int32 height_, int32 scale_, int53 chat_id_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int53 chat_id_
 Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown.
int32 height_
 Map height in pixels before applying scale; 16-1024.
object_ptr< location > location_
 Location of the map center.
int32 scale_
 Map scale; 1-3.
int32 width_
 Map width in pixels before applying scale; 16-1024.
int32 zoom_
 Map zoom level; 13-20.

Static Public Attributes

static const std::int32_t ID = -152660070
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ getMapThumbnailFile() [1/2]

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 object_ptr<File>.

◆ getMapThumbnailFile() [2/2]

getMapThumbnailFile ( object_ptr< location > && location_,
int32 zoom_,
int32 width_,
int32 height_,
int32 scale_,
int53 chat_id_ )

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 object_ptr<File>.

Parameters
[in]location_Location of the map center.
[in]zoom_Map zoom level; 13-20.
[in]width_Map width in pixels before applying scale; 16-1024.
[in]height_Map height in pixels before applying scale; 16-1024.
[in]scale_Map scale; 1-3.
[in]chat_id_Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: