diff --git a/docs/source/conf.py b/docs/source/conf.py index 44bd4400cd5..40f7dd411d4 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -140,12 +140,6 @@ "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 f9682f58b86..5615e146949 100644 --- a/telegram/_bot.py +++ b/telegram/_bot.py @@ -7176,7 +7176,7 @@ async def set_my_default_administrator_rights( ) -> 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 c43ed6d130d..cf5b54046d2 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 808eaef62f1..feed189c662 100644 --- a/tests/ext/test_updater.py +++ b/tests/ext/test_updater.py @@ -1049,7 +1049,7 @@ async def return_true(*args, **kwargs): 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):