List of all members | Public Fields | Public Instance Methods | Static Public Attributes
inputPaidMedia Class Referencefinal

Inherits Object.

Description

Describes a paid media to be sent.

Public Fields

object_ptr< InputPaidMediaTypetype_
 Type of the media.
 
object_ptr< InputFilemedia_
 Photo or video to be sent.
 
object_ptr< inputThumbnailthumbnail_
 Media thumbnail; pass null to skip thumbnail uploading.
 
array< int32added_sticker_file_ids_
 File identifiers of the stickers added to the media, if applicable.
 
int32 width_
 Media width.
 
int32 height_
 Media height.
 

Public Instance Methods

 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 Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputPaidMedia() [1/2]

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.

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