- Notifications
You must be signed in to change notification settings - Fork5.7k
Full Support for Bot API 9.0#4756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
19 commits Select commitHold shift + click to select a range
e3c7073
Bump Bot API Version
Bibo-Joshi14c8ba4
Merge branch 'master' into api_9.0
Bibo-Joshi8418cc9
Add chango fragment for PR #4756
Bibo-Joshi2144c78
Api 9.0 business methods (#4757)
Bibo-Joshic1dde7b
Api 9.0 business bot rights (#4759)
Bibo-Joshibe5d4f2
Fix attribute references for BusinessBotRights in docstrings.
aelkheirea609c9
can_delete_outgoing_messages → can_delete_sent_messages
Bibo-Joshie6fa43f
Api 9.0 gifts (#4763)
aelkheir985bf28
Clean up incorrect reference in `test_ownedgift.py`.
aelkheir6f17855
Merge branch 'master' into api_9.0
Bibo-Joshi380282e
Api 9.0 profile photos (#4766)
Bibo-Joshi6e202f3
Api 9.0 business stories (#4769)
aelkheir2ee3a10
Api 9.0 business stars (#4773)
aelkheird861270
Merge branch 'master' into api_9.0
Bibo-Joshif1b2d1d
Elaborate deprecation info in chango fragment
Bibo-Joshi9387e9b
Api 9.0 general (#4782)
Bibo-Joshic1e6b5b
Api 9.0 premium (#4781)
aelkheirb755077
Merge branch 'master' into api_9.0
Bibo-Joshi9dc69b5
fix test official
Bibo-JoshiFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletionsREADME.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletionschanges/unreleased/4756.JT5nmUmGRG6qDEh5ScMn5f.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
features = "Full Support for Bot API 9.0" | ||
deprecations = """This release comes with several deprecations, in line with our :ref:`stability policy <stability-policy>`. | ||
This includes the following: | ||
- Deprecated ``telegram.constants.StarTransactionsLimit.NANOSTAR_MIN_AMOUNT`` and ``telegram.constants.StarTransactionsLimit.NANOSTAR_MAX_AMOUNT``. These members will be replaced by ``telegram.constants.NanostarLimit.MIN_AMOUNT`` and ``telegram.constants.NanostarLimit.MAX_AMOUNT``. | ||
- Deprecated the class ``telegram.constants.StarTransactions``. Its only member ``telegram.constants.StarTransactions.NANOSTAR_VALUE`` will be replaced by ``telegram.constants.Nanostar.VALUE``. | ||
- Bot API 9.0 deprecated ``BusinessConnection.can_reply`` in favor of ``BusinessConnection.rights`` | ||
- Bot API 9.0 deprecated ``ChatFullInfo.can_send_gift`` in favor of ``ChatFullInfo.accepted_gift_types``. | ||
- Bot API 9.0 introduced these new required fields to existing classes: | ||
- ``TransactionPartnerUser.transaction_type`` | ||
- ``ChatFullInfo.accepted_gift_types`` | ||
Passing these values as positional arguments is deprecated. We encourage you to use keyword arguments instead, as the the signature will be updated in a future release. | ||
These deprecations are backward compatible, but we strongly recommend to update your code to use the new members. | ||
""" | ||
[[pull_requests]] | ||
uid = "4756" | ||
author_uid = "Bibo-Joshi" | ||
closes_threads = ["4754"] | ||
[[pull_requests]] | ||
uid = "4757" | ||
author_uid = "Bibo-Joshi" | ||
closes_threads = [] | ||
[[pull_requests]] | ||
uid = "4759" | ||
author_uid = "Bibo-Joshi" | ||
closes_threads = [] | ||
[[pull_requests]] | ||
uid = "4763" | ||
author_uid = "aelkheir" | ||
closes_threads = [] | ||
[[pull_requests]] | ||
uid = "4766" | ||
author_uid = "Bibo-Joshi" | ||
[[pull_requests]] | ||
uid = "4769" | ||
author_uid = "aelkheir" | ||
closes_threads = [] | ||
[[pull_requests]] | ||
uid = "4773" | ||
author_uid = "aelkheir" | ||
closes_threads = [] | ||
[[pull_requests]] | ||
uid = "4781" | ||
author_uid = "aelkheir" | ||
closes_threads = [] | ||
[[pull_requests]] | ||
uid = "4782" | ||
author_uid = "Bibo-Joshi" | ||
closes_threads = [] |
56 changes: 54 additions & 2 deletionsdocs/source/inclusions/bot_methods.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletionsdocs/source/telegram.acceptedgifttypes.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
AcceptedGiftTypes | ||
================= | ||
..autoclass::telegram.AcceptedGiftTypes | ||
:members: | ||
:show-inheritance: |
29 changes: 29 additions & 0 deletionsdocs/source/telegram.at-tree.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletionsdocs/source/telegram.businessbotrights.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BusinessBotRights | ||
================= | ||
..autoclass::telegram.BusinessBotRights | ||
:members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletionsdocs/source/telegram.giftinfo.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
GiftInfo | ||
======== | ||
.. autoclass:: telegram.GiftInfo | ||
:members: | ||
:show-inheritance: | ||
6 changes: 6 additions & 0 deletionsdocs/source/telegram.inputprofilephoto.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
InputProfilePhoto | ||
================= | ||
.. autoclass:: telegram.InputProfilePhoto | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.inputprofilephotoanimated.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
InputProfilePhotoAnimated | ||
========================= | ||
.. autoclass:: telegram.InputProfilePhotoAnimated | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.inputprofilephotostatic.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
InputProfilePhotoStatic | ||
======================= | ||
.. autoclass:: telegram.InputProfilePhotoStatic | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.inputstorycontent.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
InputStoryContent | ||
================= | ||
.. autoclass:: telegram.InputStoryContent | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.inputstorycontentphoto.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
InputStoryContentPhoto | ||
====================== | ||
.. autoclass:: telegram.InputStoryContentPhoto | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.inputstorycontentvideo.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
InputStoryContentVideo | ||
====================== | ||
.. autoclass:: telegram.InputStoryContentVideo | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.locationaddress.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LocationAddress | ||
=============== | ||
.. autoclass:: telegram.LocationAddress | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.ownedgift.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
OwnedGift | ||
========= | ||
.. autoclass:: telegram.OwnedGift | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.ownedgiftregular.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
OwnedGiftRegular | ||
================ | ||
.. autoclass:: telegram.OwnedGiftRegular | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.ownedgifts.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
OwnedGifts | ||
========== | ||
.. autoclass:: telegram.OwnedGifts | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.ownedgiftunique.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
OwnedGiftUnique | ||
=============== | ||
.. autoclass:: telegram.OwnedGiftUnique | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.paidmeessagepricechanged.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PaidMessagePriceChanged | ||
======================= | ||
.. autoclass:: telegram.PaidMessagePriceChanged | ||
:members: | ||
:show-inheritance: |
1 change: 1 addition & 0 deletionsdocs/source/telegram.payments-tree.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletionsdocs/source/telegram.staramount.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
StarAmount | ||
========== | ||
.. autoclass:: telegram.StarAmount | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.storyarea.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
StoryArea | ||
========= | ||
.. autoclass:: telegram.StoryArea | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.storyareaposition.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
StoryAreaPosition | ||
================= | ||
.. autoclass:: telegram.StoryAreaPosition | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.storyareatype.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
StoryAreaType | ||
============= | ||
.. autoclass:: telegram.StoryAreaType | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.storyareatypelink.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
StoryAreaTypeLink | ||
================= | ||
.. autoclass:: telegram.StoryAreaTypeLink | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.storyareatypelocation.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
StoryAreaTypeLocation | ||
===================== | ||
.. autoclass:: telegram.StoryAreaTypeLocation | ||
:members: | ||
:show-inheritance: |
6 changes: 6 additions & 0 deletionsdocs/source/telegram.storyareatypesuggestedreaction.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
StoryAreaTypeSuggestedReaction | ||
============================== | ||
.. autoclass:: telegram.StoryAreaTypeSuggestedReaction | ||
:members: | ||
:show-inheritance: |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.