diff --git a/docs/source/conf.py b/docs/source/conf.py index 44bd4400c..40f7dd411 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -140,12 +140,6 @@ html_theme_options = { "admonition-title-font-size": "0.95rem", "admonition-font-size": "0.92rem", }, - "announcement": ( - "PTB has undergone significant changes in v20. Please read the documentation " - "carefully and also check out the transition guide in the " - 'wiki.' - ), "footer_icons": [ { # Telegram channel logo diff --git a/telegram/_bot.py b/telegram/_bot.py index f9682f58b..5615e1469 100644 --- a/telegram/_bot.py +++ b/telegram/_bot.py @@ -7176,7 +7176,7 @@ CUSTOM_EMOJI_IDENTIFIER_LIMIT` custom emoji identifiers can be specified. ) -> bool: """Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to - users, but they are are free to modify the list before adding the bot. + users, but they are free to modify the list before adding the bot. .. seealso:: :meth:`get_my_default_administrator_rights` diff --git a/telegram/constants.py b/telegram/constants.py index c43ed6d13..cf5b54046 100644 --- a/telegram/constants.py +++ b/telegram/constants.py @@ -1690,8 +1690,12 @@ class MessageOriginType(StringEnum): class MessageType(StringEnum): - """This enum contains the available types of :class:`telegram.Message`. The enum - members of this enumeration are instances of :class:`str` and can be treated as such. + """This enum contains the available types of :class:`telegram.Message`. Here, a "type" means + a kind of message that is visually distinct from other kinds of messages in the Telegram app. + In particular, auxiliary attributes that can be present for multiple types of messages are + not considered in this enumeration. + + The enum members of this enumeration are instances of :class:`str` and can be treated as such. .. versionadded:: 20.0 """ diff --git a/tests/ext/test_updater.py b/tests/ext/test_updater.py index 808eaef62..feed189c6 100644 --- a/tests/ext/test_updater.py +++ b/tests/ext/test_updater.py @@ -1049,7 +1049,7 @@ class TestUpdater: assert updater.running is False async def test_webhook_ssl_just_for_telegram(self, monkeypatch, updater): - """Here we just test that the SSL info is pased to Telegram, but __not__ to the the + """Here we just test that the SSL info is pased to Telegram, but __not__ to the webhook server""" async def set_webhook(**kwargs):