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

Inherits Object.

Description

Describes a paid media to be sent.

Public Member Functions

 inputPaidMedia ()
 inputPaidMedia (object_ptr< InputPaidMediaType > &&type_, object_ptr< InputFile > &&media_, object_ptr< inputThumbnail > &&thumbnail_, 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 media, if applicable.
int32 height_
 Media height.
object_ptr< InputFile > media_
 Photo or video to be sent.
object_ptr< inputThumbnail > thumbnail_
 Media thumbnail; pass null to skip thumbnail uploading.
object_ptr< InputPaidMediaType > type_
 Type of the media.
int32 width_
 Media width.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputPaidMedia() [1/2]

inputPaidMedia ( )

Describes a paid media to be sent.

◆ inputPaidMedia() [2/2]

inputPaidMedia ( object_ptr< InputPaidMediaType > && type_,
object_ptr< InputFile > && media_,
object_ptr< inputThumbnail > && thumbnail_,
array< int32 > && added_sticker_file_ids_,
int32 width_,
int32 height_ )

Describes a paid media to be sent.

Parameters
[in]type_Type of the media.
[in]media_Photo or video to be sent.
[in]thumbnail_Media thumbnail; pass null to skip thumbnail uploading.
[in]added_sticker_file_ids_File identifiers of the stickers added to the media, if applicable.
[in]width_Media width.
[in]height_Media height.

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: