Inherits td::td_api::InputMessageContent.
|
object_ptr< InputFile > | photo_ |
| Photo to send. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20.
|
|
object_ptr< inputThumbnail > | thumbnail_ |
| Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.
|
|
array< int32 > | added_sticker_file_ids_ |
| File identifiers of the stickers added to the photo, if applicable.
|
|
int32 | width_ |
| Photo width.
|
|
int32 | height_ |
| Photo height.
|
|
object_ptr< formattedText > | caption_ |
| Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
|
|
object_ptr< MessageSelfDestructType > | self_destruct_type_ |
| Photo self-destruct type; pass null if none; private chats only.
|
|
bool | has_spoiler_ |
| True, if the photo preview must be covered by a spoiler animation; not supported in secret chats.
|
|
|
static const std::int32_t | ID = -1460959289 |
| Identifier uniquely determining a type of the object.
|
|
◆ inputMessagePhoto() [1/2]
td::td_api::inputMessagePhoto::inputMessagePhoto |
( |
| ) |
|
◆ inputMessagePhoto() [2/2]
A photo message.
- Parameters
-
[in] | photo_ | Photo to send. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. |
[in] | thumbnail_ | Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats. |
[in] | added_sticker_file_ids_ | File identifiers of the stickers added to the photo, if applicable. |
[in] | width_ | Photo width. |
[in] | height_ | Photo height. |
[in] | caption_ | Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. |
[in] | self_destruct_type_ | Photo self-destruct type; pass null if none; private chats only. |
[in] | has_spoiler_ | True, if the photo preview must be covered by a spoiler animation; not supported in secret chats. |
◆ get_id()
std::int32_t td::td_api::inputMessagePhoto::get_id |
( |
| ) |
const |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
- Returns
- this->ID.
Implements td::TlObject.
◆ store()
void td::td_api::inputMessagePhoto::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] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
The documentation for this class was generated from the following file: