Skip to content

Commit ed14781

Browse files
Bibo-Joshiharshil21starry-shivam
authored
* BotCommandScopes * pre-commit * typo Co-authored-by: Harshil <[email protected]> * rename kickChatMember & getChatMembersCount method Signed-off-by: starry69 <[email protected]> * add `language_code` and `scope` to `get/set_my_commands` and add `delete_my_commands()` * add `input_field_placeholder` to replykeyboardmarkup.py and forcereply.py also improved/fixed docs along the way * showcase `input_field_placeholder` in conversationbot.py * review 1 'i will not go away' has gone away 😢 * deprecate `Bot.commands` and make sure its only used for default scope * review 2 (use constants for scope) * Review Signed-off-by: starry69 <[email protected]> * doc updates * New ChatMember classes Signed-off-by: starry69 <[email protected]> * Address review Signed-off-by: starry69 <[email protected]> * add versionadded tags again Signed-off-by: starry69 <[email protected]> * Improve tests & add a deprecation note to ChatMember * test_official * Documentation tweaks * Bump bot api version number * but bot * Rename chat shortcuts Signed-off-by: starry69 <[email protected]> * deepsource Signed-off-by: starry69 <[email protected]> * add missing slot in botcommandscope & missing slot tests Co-authored-by: Harshil <[email protected]> Co-authored-by: starry69 <[email protected]> Co-authored-by: Harshil <[email protected]>
1 parent 4315225 commit ed14781

34 files changed

Lines changed: 1778 additions & 125 deletions

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We have a vibrant community of developers helping each other in our `Telegram gr
2020
:target: https://pypi.org/project/python-telegram-bot/
2121
:alt: Supported Python versions
2222

23-
.. image:: https://img.shields.io/badge/Bot%20API-5.2-blue?logo=telegram
23+
.. image:: https://img.shields.io/badge/Bot%20API-5.3-blue?logo=telegram
2424
:target: https://core.telegram.org/bots/api-changelog
2525
:alt: Supported Bot API versions
2626

@@ -111,7 +111,7 @@ Installing both ``python-telegram-bot`` and ``python-telegram-bot-raw`` in conju
111111
Telegram API support
112112
====================
113113

114-
All types and methods of the Telegram Bot API **5.2** are supported.
114+
All types and methods of the Telegram Bot API **5.3** are supported.
115115

116116
==========
117117
Installing

README_RAW.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We have a vibrant community of developers helping each other in our `Telegram gr
2020
:target: https://pypi.org/project/python-telegram-bot-raw/
2121
:alt: Supported Python versions
2222

23-
.. image:: https://img.shields.io/badge/Bot%20API-5.2-blue?logo=telegram
23+
.. image:: https://img.shields.io/badge/Bot%20API-5.3-blue?logo=telegram
2424
:target: https://core.telegram.org/bots/api-changelog
2525
:alt: Supported Bot API versions
2626

@@ -105,7 +105,7 @@ Installing both ``python-telegram-bot`` and ``python-telegram-bot-raw`` in conju
105105
Telegram API support
106106
====================
107107

108-
All types and methods of the Telegram Bot API **5.2** are supported.
108+
All types and methods of the Telegram Bot API **5.3** are supported.
109109

110110
==========
111111
Installing
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/botcommandscope.py
2+
3+
telegram.BotCommandScope
4+
========================
5+
6+
.. autoclass:: telegram.BotCommandScope
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/botcommandscope.py
2+
3+
telegram.BotCommandScopeAllChatAdministrators
4+
=============================================
5+
6+
.. autoclass:: telegram.BotCommandScopeAllChatAdministrators
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/botcommandscope.py
2+
3+
telegram.BotCommandScopeAllGroupChats
4+
=======================================
5+
6+
.. autoclass:: telegram.BotCommandScopeAllGroupChats
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/botcommandscope.py
2+
3+
telegram.BotCommandScopeAllPrivateChats
4+
=======================================
5+
6+
.. autoclass:: telegram.BotCommandScopeAllPrivateChats
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/botcommandscope.py
2+
3+
telegram.BotCommandScopeChat
4+
============================
5+
6+
.. autoclass:: telegram.BotCommandScopeChat
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/botcommandscope.py
2+
3+
telegram.BotCommandScopeChatAdministrators
4+
==========================================
5+
6+
.. autoclass:: telegram.BotCommandScopeChatAdministrators
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/botcommandscope.py
2+
3+
telegram.BotCommandScopeChatMember
4+
==================================
5+
6+
.. autoclass:: telegram.BotCommandScopeChatMember
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/botcommandscope.py
2+
3+
telegram.BotCommandScopeDefault
4+
===============================
5+
6+
.. autoclass:: telegram.BotCommandScopeDefault
7+
:members:
8+
:show-inheritance:

0 commit comments

Comments
 (0)