List of all members | Public Fields | Public Types | Public Instance Methods | Static Public Attributes
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 Fields

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

Public Types

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

Public Instance Methods

 getMapThumbnailFile ()
 
 getMapThumbnailFile (object_ptr< location > &&location_, int32 zoom_, int32 width_, int32 height_, int32 scale_, int53 chat_id_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ getMapThumbnailFile() [1/2]

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.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ 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: