Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:target: https://pypi.org/project/python-telegram-bot/
:alt: Supported Python versions

.. image:: https://img.shields.io/badge/Bot%20API-9.1-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-9.2-blue?logo=telegram
:target: https://core.telegram.org/bots/api-changelog
:alt: Supported Bot API version

Expand Down Expand Up @@ -81,7 +81,7 @@ After installing_ the library, be sure to check out the section on `working with
Telegram API support
~~~~~~~~~~~~~~~~~~~~

All types and methods of the Telegram Bot API **9.1** are natively supported by this library.
All types and methods of the Telegram Bot API **9.2** are natively supported by this library.
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>`_.

Notable Features
Expand Down
14 changes: 14 additions & 0 deletions changes/unreleased/4911.kiF45Y4cfPGMq5cuLpa5da.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
features = "Full Support for Bot API 9.2"

pull_requests = [
{ uid = "4911", author_uid = "aelkheir", closes_threads = ["4910"] },
{ uid = "4918", author_uid = "Poolitzer" },
{ uid = "4917", author_uid = "Poolitzer" },
{ uid = "4914", author_uid = "harshil21"},
{ uid = "4916", author_uid = "harshil21"},
{ uid = "4912", author_uid = "aelkheir" },
{ uid = "4921", author_uid = "aelkheir" },
{ uid = "4936", author_uid = "Bibo-Joshi" },
{ uid = "4935", author_uid = "Bibo-Joshi" },
{ uid = "4931", author_uid = "aelkheir" },
]
4 changes: 4 additions & 0 deletions docs/source/inclusions/bot_methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@
- Used for approving a chat join request
* - :meth:`~telegram.Bot.decline_chat_join_request`
- Used for declining a chat join request
* - :meth:`~telegram.Bot.approve_suggested_post`
- Used for approving a suggested post
* - :meth:`~telegram.Bot.decline_suggested_post`
- Used for declining a suggested post
* - :meth:`~telegram.Bot.ban_chat_member`
- Used for banning a member from the chat
* - :meth:`~telegram.Bot.unban_chat_member`
Expand Down
9 changes: 9 additions & 0 deletions docs/source/telegram.at-tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Available Types
telegram.contact
telegram.dice
telegram.directmessagepricechanged
telegram.directmessagestopic
telegram.document
telegram.externalreplyinfo
telegram.file
Expand Down Expand Up @@ -168,6 +169,14 @@ Available Types
telegram.storyareatypesuggestedreaction
telegram.storyareatypeuniquegift
telegram.storyareatypeweather
telegram.suggestedpostapprovalfailed
telegram.suggestedpostapproved
telegram.suggestedpostdeclined
telegram.suggestedpostinfo
telegram.suggestedpostpaid
telegram.suggestedpostparameters
telegram.suggestedpostprice
telegram.suggestedpostrefunded
telegram.switchinlinequerychosenchat
telegram.telegramobject
telegram.textquote
Expand Down
6 changes: 6 additions & 0 deletions docs/source/telegram.directmessagestopic.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DirectMessagesTopic
===================

.. autoclass:: telegram.DirectMessagesTopic
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.suggestedpostapprovalfailed.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SuggestedPostApprovalFailed
===========================

.. autoclass:: telegram.SuggestedPostApprovalFailed
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.suggestedpostapproved.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SuggestedPostApproved
=====================

.. autoclass:: telegram.SuggestedPostApproved
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.suggestedpostdeclined.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SuggestedPostDeclined
=====================

.. autoclass:: telegram.SuggestedPostDeclined
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.suggestedpostinfo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SuggestedPostInfo
=================

.. autoclass:: telegram.SuggestedPostInfo
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.suggestedpostpaid.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SuggestedPostPaid
=================

.. autoclass:: telegram.SuggestedPostPaid
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.suggestedpostparameters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SuggestedPostParameters
=======================

.. autoclass:: telegram.SuggestedPostParameters
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.suggestedpostprice.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SuggestedPostPrice
==================

.. autoclass:: telegram.SuggestedPostPrice
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.suggestedpostrefunded.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SuggestedPostRefunded
=====================

.. autoclass:: telegram.SuggestedPostRefunded
:members:
:show-inheritance:
4 changes: 4 additions & 0 deletions docs/substitutions/global.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@

.. |allow_paid_broadcast| replace:: Pass True to allow up to :tg-const:`telegram.constants.FloodLimit.PAID_MESSAGES_PER_SECOND` messages per second, ignoring `broadcasting limits <https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once>`__ for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance.

.. |direct_messages_topic_id| replace:: Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat.

.. |suggested_post_parameters| replace:: An object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.

.. |tz-naive-dtms| replace:: For timezone naive :obj:`datetime.datetime` objects, the default timezone of the bot will be used, which is UTC unless :attr:`telegram.ext.Defaults.tzinfo` is used.

.. |org-verify| replace:: `on behalf of the organization <https://telegram.org/verify#third-party-verification>`__
Expand Down
20 changes: 20 additions & 0 deletions src/telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"DataCredentials",
"Dice",
"DirectMessagePriceChanged",
"DirectMessagesTopic",
"Document",
"EncryptedCredentials",
"EncryptedPassportElement",
Expand Down Expand Up @@ -264,6 +265,14 @@
"StoryAreaTypeUniqueGift",
"StoryAreaTypeWeather",
"SuccessfulPayment",
"SuggestedPostApprovalFailed",
"SuggestedPostApproved",
"SuggestedPostDeclined",
"SuggestedPostInfo",
"SuggestedPostPaid",
"SuggestedPostParameters",
"SuggestedPostPrice",
"SuggestedPostRefunded",
"SwitchInlineQueryChosenChat",
"TelegramObject",
"TextQuote",
Expand Down Expand Up @@ -394,6 +403,7 @@
from ._copytextbutton import CopyTextButton
from ._dice import Dice
from ._directmessagepricechanged import DirectMessagePriceChanged
from ._directmessagestopic import DirectMessagesTopic
from ._files._inputstorycontent import (
InputStoryContent,
InputStoryContentPhoto,
Expand Down Expand Up @@ -571,6 +581,16 @@
StoryAreaTypeUniqueGift,
StoryAreaTypeWeather,
)
from ._suggestedpost import (
SuggestedPostApprovalFailed,
SuggestedPostApproved,
SuggestedPostDeclined,
SuggestedPostInfo,
SuggestedPostPaid,
SuggestedPostParameters,
SuggestedPostPrice,
SuggestedPostRefunded,
)
from ._switchinlinequerychosenchat import SwitchInlineQueryChosenChat
from ._telegramobject import TelegramObject
from ._uniquegift import (
Expand Down
Loading
Loading