edit_user_star_subscription

template<class Agent>
api_result<boolean_t, Agent&&> edit_user_star_subscription(Agent &&agent, edit_user_star_subscription_args_t args)
template<class Agent, class F>
void edit_user_star_subscription(Agent &&agent, edit_user_star_subscription_args_t args, F &&callback)

agent is any object satisfying agent concept.

callback is any callable object accepting expected<boolean_t>.

Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns True on success.

struct edit_user_star_subscription_args_t

Arguments that should be passed to edit_user_star_subscription().

integer_t user_id

Identifier of the user whose subscription will be edited

string_t telegram_payment_charge_id

Telegram payment identifier for the subscription

boolean_t is_canceled

Pass True to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period. Pass False to allow the user to re-enable a subscription that was previously canceled by the bot.