Change8

v21.11

📦 telegram-bot-apiView on GitHub →
6 features🐛 2 fixes1 deprecations🔧 6 symbols

Summary

Version 21.11 introduces full support for Bot API 8.3 and adds several quality-of-life improvements, including optional arguments and better timedelta handling, while removing the deprecated `hide_url` attribute.

Migration Steps

  1. If you were using `InlineQueryResultArticle.hide_url`, remove its usage as it has been removed.

✨ New Features

  • Full support for Bot API 8.3.
  • The `provider_token` argument is now optional in relevant methods.
  • The `Bot` method parameters now accept `datetime.timedelta` input.
  • Extended customization support for `Bot.base_file_url` and `Bot.base_url`.
  • Support for `allow_paid_broadcast` added to `AIORateLimiter`.
  • Added `BaseUpdateProcessor.current_concurrent_updates`.

🐛 Bug Fixes

  • Fixed a bug in `edit_user_star_subscription`.
  • Simplified handling of empty data in `TelegramObject.de_json` and related methods.

🔧 Affected Symbols

InlineQueryResultArticle.hide_urlBotAIORateLimiterBaseUpdateProcessor.current_concurrent_updatesedit_user_star_subscriptionTelegramObject.de_json

⚡ Deprecations

  • The `InlineQueryResultArticle.hide_url` attribute has been removed.