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

Inherits MessageContent.

Description

A gift was received or sent by the current user.

Public Fields

object_ptr< giftgift_
 The gift.
 
object_ptr< formattedTexttext_
 Message added to the gift.
 
int53 sell_star_count_
 Number of Telegram Stars that can be claimed by the receiver instead of the gift.
 
bool is_private_
 True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
 
bool is_saved_
 True, if the gift is displayed on the user's profile page; only for the receiver of the gift.
 
bool was_converted_
 True, if the gift was converted to Telegram Stars; only for the receiver of the gift.
 

Public Instance Methods

 messageGift ()
 
 messageGift (object_ptr< gift > &&gift_, object_ptr< formattedText > &&text_, int53 sell_star_count_, bool is_private_, bool is_saved_, bool was_converted_)
 
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 = -1741766297
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ messageGift() [1/2]

A gift was received or sent by the current user.

◆ messageGift() [2/2]

messageGift ( object_ptr< gift > &&  gift_,
object_ptr< formattedText > &&  text_,
int53  sell_star_count_,
bool  is_private_,
bool  is_saved_,
bool  was_converted_ 
)

A gift was received or sent by the current user.

Parameters
[in]gift_The gift.
[in]text_Message added to the gift.
[in]sell_star_count_Number of Telegram Stars that can be claimed by the receiver instead of the gift.
[in]is_private_True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
[in]is_saved_True, if the gift is displayed on the user's profile page; only for the receiver of the gift.
[in]was_converted_True, if the gift was converted to Telegram Stars; only for the receiver of the gift.

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: