tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::getMapThumbnailFile Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::getMapThumbnailFile:
td::td_api::Function td::TlObject

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

Public Attributes

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.
 

Static Public Attributes

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

Detailed 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>.

Definition at line 108486 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 108534 of file td_api.h.

Constructor & Destructor Documentation

◆ getMapThumbnailFile() [1/2]

td::td_api::getMapThumbnailFile::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]

td::td_api::getMapThumbnailFile::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 td::td_api::getMapThumbnailFile::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 td::TlObject.

Member Data Documentation

◆ chat_id_

int53 td::td_api::getMapThumbnailFile::chat_id_

Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown.

Definition at line 108507 of file td_api.h.

◆ height_

int32 td::td_api::getMapThumbnailFile::height_

Map height in pixels before applying scale; 16-1024.

Definition at line 108503 of file td_api.h.

◆ ID

const std::int32_t td::td_api::getMapThumbnailFile::ID = -152660070
static

Identifier uniquely determining a type of the object.

Definition at line 108531 of file td_api.h.

◆ location_

object_ptr<location> td::td_api::getMapThumbnailFile::location_

Location of the map center.

Definition at line 108497 of file td_api.h.

◆ scale_

int32 td::td_api::getMapThumbnailFile::scale_

Map scale; 1-3.

Definition at line 108505 of file td_api.h.

◆ width_

int32 td::td_api::getMapThumbnailFile::width_

Map width in pixels before applying scale; 16-1024.

Definition at line 108501 of file td_api.h.

◆ zoom_

int32 td::td_api::getMapThumbnailFile::zoom_

Map zoom level; 13-20.

Definition at line 108499 of file td_api.h.


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