#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| 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.
|
| |
|
| static const std::int32_t | ID = 917878931 |
| | Identifier uniquely determining a type of the object.
|
| |
Sends an offer to purchase an upgraded gift.
Returns object_ptr<Ok>.
Definition at line 126102 of file td_api.h.
◆ ReturnType
Typedef for the type returned by the function.
Definition at line 126147 of file td_api.h.
◆ sendGiftPurchaseOffer() [1/2]
| td::td_api::sendGiftPurchaseOffer::sendGiftPurchaseOffer |
( |
| ) |
|
Default constructor for a function, which sends an offer to purchase an upgraded gift.
Returns object_ptr<Ok>.
◆ sendGiftPurchaseOffer() [2/2]
Creates a function, which sends an offer to purchase an upgraded gift.
Returns object_ptr<Ok>.
- Parameters
-
| [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. |
◆ store()
| void td::td_api::sendGiftPurchaseOffer::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] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
◆ duration_
| int32 td::td_api::sendGiftPurchaseOffer::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.
Definition at line 126119 of file td_api.h.
◆ gift_name_
| string td::td_api::sendGiftPurchaseOffer::gift_name_ |
Name of the upgraded gift.
Definition at line 126115 of file td_api.h.
◆ ID
| const std::int32_t td::td_api::sendGiftPurchaseOffer::ID = 917878931 |
|
static |
Identifier uniquely determining a type of the object.
Definition at line 126144 of file td_api.h.
◆ owner_id_
Identifier of the user or the channel chat that currently owns the gift and will receive the offer.
Definition at line 126113 of file td_api.h.
◆ paid_message_star_count_
| int53 td::td_api::sendGiftPurchaseOffer::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.
Definition at line 126121 of file td_api.h.
◆ price_
The price that the user agreed to pay for the gift.
Definition at line 126117 of file td_api.h.
The documentation for this class was generated from the following file:
- /home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h