Skip to content

Commit

Permalink
Documentation Improvements (#4171, #4158)
Browse files Browse the repository at this point in the history
Signed-off-by: teslaedison <qingchengqiushuang@gmail.com>
Co-authored-by: teslaedison <156734008+teslaedison@users.noreply.github.com>
  • Loading branch information
Bibo-Joshi and teslaedison committed Apr 12, 2024
1 parent 5fa4579 commit 1538947
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 0 additions & 6 deletions docs/source/conf.py
Expand Up @@ -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 "
'<a href="https://github.com/python-telegram-bot/python-telegram-bot/wiki/'
'Transition-guide-to-Version-20.0">wiki</a>.'
),
"footer_icons": [
{
# Telegram channel logo
Expand Down
2 changes: 1 addition & 1 deletion telegram/_bot.py
Expand Up @@ -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`
Expand Down
8 changes: 6 additions & 2 deletions telegram/constants.py
Expand Up @@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/ext/test_updater.py
Expand Up @@ -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):
Expand Down

0 comments on commit 1538947

Please sign in to comment.