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)¶ agentis any object satisfying agent concept.callbackis any callable object acceptingexpected<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().Identifier of the user whose subscription will be edited
Telegram payment identifier for the subscription
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.