Skip to content

Commit ac02bce

Browse files
PoolitzerBibo-Joshiharshil21starry-shivam
authored
* Feat: New invite links * Fix: doc strings Co-authored-by: Bibo-Joshi <[email protected]> * new dice, new admin privilege, revoke_messages, update and fix some docs * add missing param to shortcut * Add ChatMemberUpdated * Add voicechat related objects Signed-off-by: starry69 <[email protected]> * add versionadd tags Signed-off-by: starry69 <[email protected]> * Fix filter tests * Update tg.Update * ChatMemberHandler * Add versioning directives * add can_manage_voice_chats attr and fix docs Signed-off-by: starry69 <[email protected]> * fix chat shortcut Signed-off-by: starry69 <[email protected]> * address review * MADTC * Chat.message_auto_delete_time * Some doc fixes * address review Signed-off-by: starry69 <[email protected]> * welp Signed-off-by: starry69 <[email protected]> * Add voicechat related filters Signed-off-by: starry69 <[email protected]> * Fix: Addressing review change place of version adding, added obj:True as doc string, changing how member limit is initiated * feat: adding chat shortcuts for invite links * fix: changing equality of chatinviteobjects * Non-test comments * Some test fixes * A bit more tests * Bump API version in both readmes * Increase coverage * Add Bot API Version in telegram.constants (python-telegram-bot#2429) * add bot api version in constants Signed-off-by: starry69 <[email protected]> * addressing review Signed-off-by: starry69 <[email protected]> * add versioning directive Co-authored-by: Bibo-Joshi <[email protected]> * pre-commit & coverage Co-authored-by: Bibo-Joshi <[email protected]> Co-authored-by: Harshil <[email protected]> Co-authored-by: starry69 <[email protected]>
1 parent 3a9a0ab commit ac02bce

47 files changed

Lines changed: 2109 additions & 64 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ Hey! You're PRing? Cool! Please have a look at the below checklist. It's here to
2727
- [ ] Added new handlers for new update types
2828
- [ ] Added new filters for new message (sub)types
2929
- [ ] Added or updated documentation for the changed class(es) and/or method(s)
30-
- [ ] Updated the Bot API version number in all places in `README.rst` and `README_RAW.rst`, including the badge
30+
- [ ] Updated the Bot API version number in all places: `README.rst` and `README_RAW.rst` (including the badge), as well as `telegram.constants.BOT_API_VERSION`

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.0-blue?logo=telegram
23+
.. image:: https://img.shields.io/badge/Bot%20API-5.1-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.0** are supported.
114+
All types and methods of the Telegram Bot API **5.1** 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.0-blue?logo=telegram
23+
.. image:: https://img.shields.io/badge/Bot%20API-5.1-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.0** are supported.
108+
All types and methods of the Telegram Bot API **5.1** are supported.
109109

110110
==========
111111
Installing
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
telegram.ChatInviteLink
2+
=======================
3+
4+
.. autoclass:: telegram.ChatInviteLink
5+
:members:
6+
:show-inheritance:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
telegram.ChatMemberUpdated
2+
==========================
3+
4+
.. autoclass:: telegram.ChatMemberUpdated
5+
:members:
6+
:show-inheritance:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
telegram.ext.ChatMemberHandler
2+
==============================
3+
4+
.. autoclass:: telegram.ext.ChatMemberHandler
5+
:members:
6+
:show-inheritance:

docs/source/telegram.ext.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Handlers
2121
telegram.ext.handler
2222
telegram.ext.callbackqueryhandler
2323
telegram.ext.choseninlineresulthandler
24+
telegram.ext.chatmemberhandler
2425
telegram.ext.commandhandler
2526
telegram.ext.conversationhandler
2627
telegram.ext.inlinequeryhandler
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
telegram.MessageAutoDeleteTimerChanged
2+
======================================
3+
4+
.. autoclass:: telegram.MessageAutoDeleteTimerChanged
5+
:members:
6+
:show-inheritance:

docs/source/telegram.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ telegram package
1313
telegram.callbackquery
1414
telegram.chat
1515
telegram.chataction
16+
telegram.chatinvitelink
1617
telegram.chatlocation
1718
telegram.chatmember
19+
telegram.chatmemberupdated
1820
telegram.chatpermissions
1921
telegram.chatphoto
2022
telegram.constants
@@ -38,6 +40,7 @@ telegram package
3840
telegram.location
3941
telegram.loginurl
4042
telegram.message
43+
telegram.messageautodeletetimerchanged
4144
telegram.messageid
4245
telegram.messageentity
4346
telegram.parsemode
@@ -57,6 +60,9 @@ telegram package
5760
telegram.video
5861
telegram.videonote
5962
telegram.voice
63+
telegram.voicechatstarted
64+
telegram.voicechatended
65+
telegram.voicechatparticipantsinvited
6066
telegram.webhookinfo
6167

6268
Stickers
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
telegram.VoiceChatEnded
2+
=======================
3+
4+
.. autoclass:: telegram.VoiceChatEnded
5+
:members:
6+
:show-inheritance:
7+

0 commit comments

Comments
 (0)