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

Inherits PaidMedia.

Description

The media is hidden until the invoice is paid.

Public Fields

int32 width_
 Media width; 0 if unknown.
 
int32 height_
 Media height; 0 if unknown.
 
int32 duration_
 Media duration, in seconds; 0 if unknown.
 
object_ptr< minithumbnailminithumbnail_
 Media minithumbnail; may be null.
 

Public Instance Methods

 paidMediaPreview ()
 
 paidMediaPreview (int32 width_, int32 height_, int32 duration_, object_ptr< minithumbnail > &&minithumbnail_)
 
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 = -1128151948
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ paidMediaPreview() [1/2]

The media is hidden until the invoice is paid.

◆ paidMediaPreview() [2/2]

paidMediaPreview ( int32  width_,
int32  height_,
int32  duration_,
object_ptr< minithumbnail > &&  minithumbnail_ 
)

The media is hidden until the invoice is paid.

Parameters
[in]width_Media width; 0 if unknown.
[in]height_Media height; 0 if unknown.
[in]duration_Media duration, in seconds; 0 if unknown.
[in]minithumbnail_Media minithumbnail; may be null.

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: