TDLib
Loading...
Searching...
No Matches
inputPhoto Class Referencefinal

Inherits Object.

Description

A photo to be sent.

Public Member Functions

 inputPhoto ()
 inputPhoto (object_ptr< InputFile > &&photo_, object_ptr< inputThumbnail > &&thumbnail_, object_ptr< InputFile > &&video_, array< int32 > &&added_sticker_file_ids_, int32 width_, int32 height_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

array< int32 > added_sticker_file_ids_
 File identifiers of the stickers added to the photo, if applicable.
int32 height_
 Photo height; may be replaced by the server.
object_ptr< InputFile > photo_
 Photo to be sent. 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; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.
object_ptr< InputFile > video_
 Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo.
int32 width_
 Photo width; may be replaced by the server.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputPhoto() [1/2]

inputPhoto ( )

A photo to be sent.

◆ inputPhoto() [2/2]

inputPhoto ( object_ptr< InputFile > && photo_,
object_ptr< inputThumbnail > && thumbnail_,
object_ptr< InputFile > && video_,
array< int32 > && added_sticker_file_ids_,
int32 width_,
int32 height_ )

A photo to be sent.

Parameters
[in]photo_Photo to be sent. 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; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.
[in]video_Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo.
[in]added_sticker_file_ids_File identifiers of the stickers added to the photo, if applicable.
[in]width_Photo width; may be replaced by the server.
[in]height_Photo height; may be replaced by the server.

Member Function Documentation

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