aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/generate
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-07-08 00:06:36 +0300
committerlevlam <levlam@telegram.org>2026-07-08 00:06:36 +0300
commitcb02d4b15624c5de7b306adc9c0dc9a85fb86372 (patch)
tree03d4345b87f144fb000fffc134ec03dc5d638635 /td/generate
parent0c57fc0fe306bf35b541e1d66b852bf06c48b892 (diff)
Add td_api::updateUserSubscription.
Diffstat (limited to 'td/generate')
-rw-r--r--td/generate/scheme/td_api.tl8
1 files changed, 8 insertions, 0 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl
index 41b980d8e..80401949e 100644
--- a/td/generate/scheme/td_api.tl
+++ b/td/generate/scheme/td_api.tl
@@ -10991,6 +10991,14 @@ updateNewCustomEvent event:string = Update;
//@description A new incoming query; for bots only @id The query identifier @data JSON-serialized query data @timeout Query timeout
updateNewCustomQuery id:int64 data:string timeout:int32 = Update;
+//@description Subscription of a user to the bot was changed; for bots only
+//@user_id Identifier of the user
+//@payload Bot-specified subscription invoice payload
+//@is_canceled True, if the subscription was canceled
+//@is_restored True, if the subscription was restored
+//@is_payment_failed True, if the payment for the subscription has failed
+updateUserSubscription user_id:int53 payload:string is_canceled:Bool is_restored:Bool is_payment_failed:Bool = Update;
+
//@description A poll was updated; for bots only @poll New data about the poll
updatePoll poll:poll = Update;