Add Bot API 10.2 Bot Subscriptions support example

New BotSubscriptionsBot demonstrating the 36.0.0 subscription-updates API:
- onBotSubscriptionUpdated trigger reading user / invoicePayload / state
- exhaustive handling of the typed BotSubscriptionUpdated.State sealed type
  (Active / Canceled / Failed data objects + Unknown value-class fallback)
- botSubscriptionUpdatedUpdatesFlow raw update flow
- waitBotSubscriptionUpdated expectation

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-19 17:23:43 +06:00
parent 56cc2e70c1
commit 40425f6451
4 changed files with 128 additions and 0 deletions

View File

@@ -85,3 +85,5 @@ include ":JoinRequestQueriesBot"
include ":EphemeralMessagesBot"
include ":CommunitiesBot"
include ":BotSubscriptionsBot"