Inherits td::td_api::MessageContent.
|  | 
| object_ptr< photo > | photo_ | 
|  | The photo. 
 | 
|  | 
| object_ptr< formattedText > | caption_ | 
|  | Photo caption. 
 | 
|  | 
| bool | has_spoiler_ | 
|  | True, if the photo preview must be covered by a spoiler animation. 
 | 
|  | 
| bool | is_secret_ | 
|  | True, if the photo must be blurred and must be shown only while tapped. 
 | 
|  | 
|  | 
| static const std::int32_t | ID = -448050478 | 
|  | Identifier uniquely determining a type of the object. 
 | 
|  | 
◆ messagePhoto() [1/2]
      
        
          | td::td_api::messagePhoto::messagePhoto | ( |  | ) |  | 
      
 
 
◆ messagePhoto() [2/2]
A photo message.
- Parameters
- 
  
    | [in] | photo_ | The photo. |  | [in] | caption_ | Photo caption. |  | [in] | has_spoiler_ | True, if the photo preview must be covered by a spoiler animation. |  | [in] | is_secret_ | True, if the photo must be blurred and must be shown only while tapped. |  
 
 
 
◆ get_id()
  
  | 
        
          | std::int32_t td::td_api::messagePhoto::get_id | ( |  | ) | const |  | inlinefinalvirtual | 
 
Returns identifier uniquely determining a type of the object. 
- Returns
- this->ID. 
Implements td::TlObject.
 
 
◆ store()
  
  | 
        
          | void td::td_api::messagePhoto::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: