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

Inherits Object.

Description

Represents a gift that was acquired by the current user on an auction.

Public Fields

object_ptr< MessageSenderreceiver_id_
 Receiver of the gift.
 
int32 date_
 Point in time (Unix timestamp) when the gift was acquired.
 
int53 star_count_
 The number of Telegram Stars that were paid for the gift.
 
int32 auction_round_number_
 Identifier of the auction round in which the gift was acquired.
 
int32 auction_round_position_
 Position of the user in the round among all auction participants.
 
int32 unique_gift_number_
 Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned.
 
object_ptr< formattedTexttext_
 Message added to 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.
 

Public Instance Methods

 giftAuctionAcquiredGift ()
 
 giftAuctionAcquiredGift (object_ptr< MessageSender > &&receiver_id_, int32 date_, int53 star_count_, int32 auction_round_number_, int32 auction_round_position_, int32 unique_gift_number_, object_ptr< formattedText > &&text_, bool is_private_)
 
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 = -1109930332
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ giftAuctionAcquiredGift() [1/2]

Represents a gift that was acquired by the current user on an auction.

◆ giftAuctionAcquiredGift() [2/2]

giftAuctionAcquiredGift ( object_ptr< MessageSender > &&  receiver_id_,
int32  date_,
int53  star_count_,
int32  auction_round_number_,
int32  auction_round_position_,
int32  unique_gift_number_,
object_ptr< formattedText > &&  text_,
bool  is_private_ 
)

Represents a gift that was acquired by the current user on an auction.

Parameters
[in]receiver_id_Receiver of the gift.
[in]date_Point in time (Unix timestamp) when the gift was acquired.
[in]star_count_The number of Telegram Stars that were paid for the gift.
[in]auction_round_number_Identifier of the auction round in which the gift was acquired.
[in]auction_round_position_Position of the user in the round among all auction participants.
[in]unique_gift_number_Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned.
[in]text_Message added to 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.

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: