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

Inherits InputPaidMediaType.

Description

The media is a photo. 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.

Public Member Functions

 inputPaidMediaTypePhoto ()
 inputPaidMediaTypePhoto (object_ptr< InputFile > &&video_)
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

object_ptr< InputFile > video_
 Video of the live photo; pass null if the photo isn't a live photo.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputPaidMediaTypePhoto() [1/2]

inputPaidMediaTypePhoto ( )

The media is a photo. 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.

◆ inputPaidMediaTypePhoto() [2/2]

inputPaidMediaTypePhoto ( object_ptr< InputFile > && video_)
explicit

The media is a photo. 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.

Parameters
[in]video_Video of the live photo; pass null if the photo isn't a live photo.

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: