aelkheir · GitHub

added 4 commits

May 4, 2025 15:39
Telegram Premium
- Added the method giftPremiumSubscription, allowing bots to gift a user
  a Telegram Premium subscription paid in Telegram Stars.
Telegram Premium
- Added the field premium_subscription_duration to the class
  TransactionPartnerUser for transactions involving a Telegram Premium
  subscription purchased by the bot.
- Added the field transaction_type to the class TransactionPartnerUser,
  simplifying the differentiation and processing of all transaction types.

Closed

35 tasks

@Bibo-Joshi

Bibo-Joshi

- Add shortcut User.gift_premium_subscription
- Add a missing ".. versionadded"
- Update "deprecations" change note to recommend using keyword
  arguments for added required fields to existing classes.
# Conflicts:
#	changes/unreleased/4756.JT5nmUmGRG6qDEh5ScMn5f.toml

@Bibo-Joshi

@Bibo-Joshi

Read the original on github.com ↗