TDLib
|
Inherits td::td_api::Function.
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_) | |
std::int32_t | get_id () const final |
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 | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Public Attributes | |
object_ptr< location > | location_ |
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. | |
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>.
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>.
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>.
[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. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.