Inherits Function.
Sends an offer to purchase an upgraded gift.
Returns object_ptr<Ok>.
Public Fields | |
| object_ptr< MessageSender > | owner_id_ |
| Identifier of the user or the channel chat that currently owns the gift and will receive the offer. | |
| string | gift_name_ |
| Name of the upgraded gift. | |
| object_ptr< GiftResalePrice > | price_ |
| The price that the user agreed to pay for the gift. | |
| int32 | duration_ |
| Duration of the offer, in seconds; must be one of 21600, 43200, 86400, 129600, 172800, or 259200. Can also be 120 if Telegram test environment is used. | |
| int53 | paid_message_star_count_ |
| The number of Telegram Stars the user agreed to pay additionally for sending of the offer message to the current gift owner; pass userFullInfo.outgoing_paid_message_star_count for users and 0 otherwise. | |
Public Types | |
| using | ReturnType = object_ptr< ok > |
| Typedef for the type returned by the function. | |
Public Instance Methods | |
| sendGiftPurchaseOffer () | |
| sendGiftPurchaseOffer (object_ptr< MessageSender > &&owner_id_, string const &gift_name_, object_ptr< GiftResalePrice > &&price_, int32 duration_, int53 paid_message_star_count_) | |
| 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 | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = 917878931 |
| Identifier uniquely determining a type of the object. | |
Default constructor for a function, which sends an offer to purchase an upgraded gift.
Returns object_ptr<Ok>.
| sendGiftPurchaseOffer | ( | object_ptr< MessageSender > && | owner_id_, |
| string const & | gift_name_, | ||
| object_ptr< GiftResalePrice > && | price_, | ||
| int32 | duration_, | ||
| int53 | paid_message_star_count_ | ||
| ) |
Creates a function, which sends an offer to purchase an upgraded gift.
Returns object_ptr<Ok>.
| [in] | owner_id_ | Identifier of the user or the channel chat that currently owns the gift and will receive the offer. |
| [in] | gift_name_ | Name of the upgraded gift. |
| [in] | price_ | The price that the user agreed to pay for the gift. |
| [in] | duration_ | Duration of the offer, in seconds; must be one of 21600, 43200, 86400, 129600, 172800, or 259200. Can also be 120 if Telegram test environment is used. |
| [in] | paid_message_star_count_ | The number of Telegram Stars the user agreed to pay additionally for sending of the offer message to the current gift owner; pass userFullInfo.outgoing_paid_message_star_count for users and 0 otherwise. |
|
finalvirtual |