Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API 7.2 #4180

Merged
merged 32 commits into from Apr 12, 2024
Merged

API 7.2 #4180

Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1fbac17
Add new parameter to bot methods and 2 new business params in Message
harshil21 Mar 31, 2024
4b0e7fc
Remove whitespace detected by ruff
harshil21 Mar 31, 2024
af341cc
Bump bot api version number
harshil21 Mar 31, 2024
735ed1e
fix pre-commit
harshil21 Mar 31, 2024
9c35dbd
doc fix
harshil21 Mar 31, 2024
badf3fc
Add new parameters to Update along with the new method
harshil21 Apr 1, 2024
6bb22f4
forgot to add method to extbot
harshil21 Apr 1, 2024
1b33dfa
Add new handlers and filters
harshil21 Apr 1, 2024
dc3c1b9
fix doc build and improve type completeness
harshil21 Apr 1, 2024
3ff7a68
Apply Sticker method and pack changes
harshil21 Apr 1, 2024
e942ebf
fix tests again
harshil21 Apr 2, 2024
dcb471e
Feat: add the field `is_from_offline` to the class `Message` (#4189)
mahdyar Apr 2, 2024
17b295a
Merge branch 'master' into api-7.2
Bibo-Joshi Apr 2, 2024
6b6fcf5
Revert "Temporarily Mark Tests with `get_sticker_set` as XFAIL due to…
Bibo-Joshi Apr 2, 2024
c67f751
Make test_drop_callback_data use NonchalantHttpxRequest to avoid floo…
harshil21 Apr 2, 2024
9250017
Add Birthdate class and field to Chat
harshil21 Apr 2, 2024
a1f86c6
Add replace_sticker_in_set method
harshil21 Apr 3, 2024
a9e0eda
Add can_connect_to_business field
harshil21 Apr 3, 2024
3d513ec
Add personal_chat to Chat
harshil21 Apr 3, 2024
c350584
Add filters.IS_FROM_OFFLINE
harshil21 Apr 3, 2024
f927ad0
Update test_official
harshil21 Apr 3, 2024
275fd33
Improve test coverage
harshil21 Apr 3, 2024
b3becd6
Doc fix for the new handlers
harshil21 Apr 4, 2024
9305a43
change business_connection_id test target
harshil21 Apr 4, 2024
bb9bdb4
Business info (#4183)
aelkheir Apr 6, 2024
0f99ace
Request Chat Improvements (tests remaining)
clot27 Apr 7, 2024
6935e6a
fix pre-commit
clot27 Apr 7, 2024
88bba66
Merge branch 'master' into api-7.2
Bibo-Joshi Apr 7, 2024
91b1da6
Review: remove business_connection_id from Message methods
harshil21 Apr 7, 2024
8addbf4
Work on UsersShared
Bibo-Joshi Apr 8, 2024
b1af7d5
Work on tests
Bibo-Joshi Apr 8, 2024
0fb2322
Fix docs and add TestSharedUser
Bibo-Joshi Apr 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -14,7 +14,7 @@
:target: https://pypi.org/project/python-telegram-bot/
:alt: Supported Python versions

.. image:: https://img.shields.io/badge/Bot%20API-7.1-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-7.2-blue?logo=telegram
:target: https://core.telegram.org/bots/api-changelog
:alt: Supported Bot API versions

Expand Down Expand Up @@ -89,7 +89,7 @@ Installing both ``python-telegram-bot`` and ``python-telegram-bot-raw`` in conju
Telegram API support
====================

All types and methods of the Telegram Bot API **7.1** are supported.
All types and methods of the Telegram Bot API **7.2** are supported.

Installing
==========
Expand Down
4 changes: 2 additions & 2 deletions README_RAW.rst
Expand Up @@ -14,7 +14,7 @@
:target: https://pypi.org/project/python-telegram-bot-raw/
:alt: Supported Python versions

.. image:: https://img.shields.io/badge/Bot%20API-7.1-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-7.2-blue?logo=telegram
:target: https://core.telegram.org/bots/api-changelog
:alt: Supported Bot API versions

Expand Down Expand Up @@ -85,7 +85,7 @@ Installing both ``python-telegram-bot`` and ``python-telegram-bot-raw`` in conju
Telegram API support
====================

All types and methods of the Telegram Bot API **7.1** are supported.
All types and methods of the Telegram Bot API **7.2** are supported.

Installing
==========
Expand Down
2 changes: 2 additions & 0 deletions docs/substitutions/global.rst
Expand Up @@ -79,3 +79,5 @@
.. |do_quote| replace:: If set to :obj:`True`, the replied message is quoted. For a dict, it must be the output of :meth:`~telegram.Message.build_reply_arguments` to specify exact ``reply_parameters``. If ``reply_to_message_id`` or ``reply_parameters`` are passed, this parameter will be ignored. Default: :obj:`True` in group chats and :obj:`False` in private chats.

.. |non_optional_story_argument| replace:: As of this version, this argument is now required. In accordance with our `stability policy <https://docs.python-telegram-bot.org/en/stable/stability_policy.html>`__, the signature will be kept as optional for now, though they are mandatory and an error will be raised if you don't pass it.

.. |business_id_str| replace:: Unique identifier of the business connection on behalf of which the message will be sent.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -20,7 +20,7 @@ explicit-preview-rules = true
ignore = ["PLR2004", "PLR0911", "PLR0912", "PLR0913", "PLR0915", "PERF203"]
select = ["E", "F", "I", "PL", "UP", "RUF", "PTH", "C4", "B", "PIE", "SIM", "RET", "RSE",
"G", "ISC", "PT", "ASYNC", "TCH", "SLOT", "PERF", "PYI", "FLY", "AIR", "RUF022",
"RUF023", "Q", "INP",]
"RUF023", "Q", "INP", "W"]
# Add "FURB" after it's out of preview

[tool.ruff.lint.per-file-ignores]
Expand Down