tgbot-cpp
Loading...
Searching...
No Matches
TgBot::BotSubscriptionUpdated Struct Reference

This object contains information about changes to a user payment subscription toward the current bot. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<BotSubscriptionUpdated>

Public Attributes

std::shared_ptr< Useruser { }
 User who subscribed for payments toward the bot.
std::string invoicePayload { }
 Bot-specified invoice payload.
std::string state { }
 The new state of the subscription. Currently, it can be one of “canceled” if the user canceled the subscription, “active” if the user re-enabled a previously canceled subscription, or “failed” if payment for the subscription failed.

Detailed Description

This object contains information about changes to a user payment subscription toward the current bot.

Definition at line 1151 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 1152 of file Types.h.

Member Data Documentation

◆ invoicePayload

std::string TgBot::BotSubscriptionUpdated::invoicePayload { }

Bot-specified invoice payload.

Definition at line 1162 of file Types.h.

◆ state

std::string TgBot::BotSubscriptionUpdated::state { }

The new state of the subscription. Currently, it can be one of “canceled” if the user canceled the subscription, “active” if the user re-enabled a previously canceled subscription, or “failed” if payment for the subscription failed.

Definition at line 1169 of file Types.h.

◆ user

std::shared_ptr<User> TgBot::BotSubscriptionUpdated::user { }

User who subscribed for payments toward the bot.

Definition at line 1157 of file Types.h.


The documentation for this struct was generated from the following file: