You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,7 +81,7 @@ After installing_ the library, be sure to check out the section on `working with
81
81
Telegram API support
82
82
~~~~~~~~~~~~~~~~~~~~
83
83
84
-
All types and methods of the Telegram Bot API **8.3** are natively supported by this library.
84
+
All types and methods of the Telegram Bot API **9.0** are natively supported by this library.
85
85
In addition, Bot API functionality not yet natively included can still be used as described `in our wiki <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Bot-API-Forward-Compatibility>`_.
deprecations = """This release comes with several deprecations, in line with our :ref:`stability policy <stability-policy>`.
3
+
This includes the following:
4
+
5
+
- Deprecated ``telegram.constants.StarTransactionsLimit.NANOSTAR_MIN_AMOUNT`` and ``telegram.constants.StarTransactionsLimit.NANOSTAR_MAX_AMOUNT``. These members will be replaced by ``telegram.constants.NanostarLimit.MIN_AMOUNT`` and ``telegram.constants.NanostarLimit.MAX_AMOUNT``.
6
+
- Deprecated the class ``telegram.constants.StarTransactions``. Its only member ``telegram.constants.StarTransactions.NANOSTAR_VALUE`` will be replaced by ``telegram.constants.Nanostar.VALUE``.
7
+
- Bot API 9.0 deprecated ``BusinessConnection.can_reply`` in favor of ``BusinessConnection.rights``
8
+
- Bot API 9.0 deprecated ``ChatFullInfo.can_send_gift`` in favor of ``ChatFullInfo.accepted_gift_types``.
9
+
- Bot API 9.0 introduced these new required fields to existing classes:
10
+
- ``TransactionPartnerUser.transaction_type``
11
+
- ``ChatFullInfo.accepted_gift_types``
12
+
13
+
Passing these values as positional arguments is deprecated. We encourage you to use keyword arguments instead, as the the signature will be updated in a future release.
14
+
15
+
These deprecations are backward compatible, but we strongly recommend to update your code to use the new members.
0 commit comments