Compare commits

...

89 Commits

Author SHA1 Message Date
Harshil c913056701 Rename import 2026-06-09 22:43:24 -04:00
Harshil dec28a232c Remove de_json depr test 2026-06-09 21:35:28 -04:00
Harshil 37ddf8cc16 Merge master and fix conflicts, and remove de_json's 2026-06-09 21:28:38 -04:00
Abdelrahman Elkheir 0fb5678180 Full Support for Bot API 10.0 (#5229)
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: poolitzer <github@poolitzer.eu>
Co-authored-by: Phil Bazun <Phil9lne@gmail.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-09 11:49:15 -04:00
renovate[bot] ab2996713d Update actions/stale action to v10.3.0 (#5255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 04:01:27 +00:00
renovate[bot] cc7b55d837 Update github/codeql-action action to v4.36.0 (#5256)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 03:55:54 +00:00
renovate[bot] 6cfed61395 Update pypa/gh-action-pypi-publish action to v1.14.0 (#5257)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 03:44:49 +00:00
renovate[bot] 74e1d9fb5f Update dependency sphinxcontrib-mermaid to v2.0.2 (#5254)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 03:39:14 +00:00
renovate[bot] 351a282fa3 Update dependency astral-sh/uv to v0.11.16 (#5253)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 03:38:21 +00:00
Harshil 59d2f62f81 Disallow packages newer than last 7 days (#5247) 2026-05-31 13:23:01 -04:00
Harshil 1f343592de Make instantiation of TelegramObjects 15% faster (#5250) 2026-05-31 12:47:47 -04:00
renovate[bot] 4ad65a3b40 Update Ruff to v0.15.15 (#5252)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-31 01:37:51 +00:00
renovate[bot] 1a83d47fb3 Update Ruff to v0.15.14 (#5245)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-24 01:34:16 +00:00
karin0 6fdab3a58d Check channel_post and edited_channel_post in Update.effective_user (#5237) 2026-05-20 17:44:41 -04:00
renovate[bot] b4067ce363 Update Ruff to v0.15.13 (#5233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-17 01:20:28 +00:00
Harshil 85294fb58d Full Support for Bot API 9.6 (#5196)
Co-authored-by: OuYoung <212045739+ouyooung@users.noreply.github.com>
2026-05-08 16:07:39 -04:00
Aleksandr Kovalko 7db5b4314a Correct isinstance check variable in _MergedFilter.__init__ (#5215) 2026-05-04 08:48:38 -04:00
renovate[bot] 6d9e17a5dc Update dependency astral-sh/uv to v0.11.8 (#5221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 02:12:18 +00:00
renovate[bot] e79716ae35 Update jannekem/run-python-script-action action to v1.8 (#5224)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 02:08:53 +00:00
renovate[bot] 69af37ded9 Update Mypy to v1.20.2 (#5223)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 01:48:48 +00:00
renovate[bot] 818d17c44d Update github/codeql-action action to v4.35.2 (#5222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 01:42:44 +00:00
renovate[bot] 80d515de39 Update actions/upload-artifact action to v7.0.1 (#5220)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 01:33:06 +00:00
renovate[bot] 229b61a3ae Update Ruff to v0.15.12 (#5217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-26 01:57:29 +00:00
renovate[bot] f34db07d70 Update Ruff to v0.15.11 (#5209)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-19 09:21:14 +00:00
renovate[bot] d228b33916 Update Mypy to v1.20.1 (#5199)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: poolitzer <github@poolitzer.eu>
2026-04-15 09:06:25 +00:00
renovate[bot] 170dca0ac4 Update dependency pytest to v9.0.3 [SECURITY] (#5206)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-14 04:43:49 +00:00
renovate[bot] d9dbd9481f Update Ruff to v0.15.10 (#5205)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-12 00:40:39 +00:00
renovate[bot] fcceb91b1a Update dependency cryptography to v46.0.7 [SECURITY] (#5203)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-09 02:35:49 +00:00
renovate[bot] 875f4ab4e3 Update Ruff to v0.15.9 (#5198)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-05 05:40:40 +00:00
renovate[bot] 87ecfee99e Update github/codeql-action action to v4.35.1 (#5194)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 06:10:51 +00:00
renovate[bot] 98f4dae84f Update codecov/codecov-action action to v5.5.4 (#5190)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 06:09:21 +00:00
renovate[bot] 6827d3da75 Update dependency mypy to v1.20.0 (#5193)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 06:06:24 +00:00
renovate[bot] bc5f3de3c3 Update dependency astral-sh/uv to v0.11.2 (#5192)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 06:06:22 +00:00
renovate[bot] 5f406fb32f Update astral-sh/setup-uv action to v7.6.0 (#5191)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 01:18:16 +00:00
Harshil b5cfa4f902 Remove redundant _de_json in Message 2026-03-31 04:20:37 -07:00
Harshil 40e9bdf94f Update changelog 2026-03-31 03:28:30 -07:00
Harshil 42dcd86fd2 Run ruff formatter and linter 2026-03-31 02:03:25 -07:00
Harshil f49f9a7d02 I'm happy enough with this implementation 2026-03-31 02:03:25 -07:00
Harshil 116aa08a93 WIP: Do some perf improvements 2026-03-31 02:03:25 -07:00
Harshil 65777a737c Remove print statements for benchmark 2026-03-31 02:03:24 -07:00
Harshil 50d9d63c11 WIP: Remove extraneous cls field 2026-03-31 02:03:24 -07:00
Harshil 4e0410aa14 WIP: Fix tests
All changes in this commit were done by Opus 4.6, some of which I'm not happy with, so that will be changed
2026-03-31 02:03:24 -07:00
Harshil 21a66b7e1b WIP: Flesh out the implementation a little more
Some tests are still failing
2026-03-31 02:03:24 -07:00
harshil21 d0d7e19b4f Add chango fragment for PR #5186 2026-03-29 13:59:35 +00:00
Harshil bb3138cc9c WIP: Start centralizing de_json 2026-03-29 06:56:22 -07:00
renovate[bot] 3ef646edbf Update dependency cryptography to v46.0.6 [SECURITY] (#5185)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-29 01:53:30 +00:00
renovate[bot] 1e82e6260b Update Ruff to v0.15.8 (#5184)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-29 00:46:04 +00:00
Krishna Chaitanya 26203b4474 Migrate from deprecated test-results-action to codecov-action (#5183) 2026-03-25 17:18:15 -07:00
renovate[bot] 73d54f4e20 Update Ruff to v0.15.7 (#5177)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-22 02:01:41 +00:00
Harshil 5a41d2ba85 Bump Version to v22.7 (#5176) 2026-03-16 05:33:25 -04:00
Bibo-Joshi 108bfaf888 Documentation Improvements (#5119)
Co-authored-by: Poolitzer <github@poolitzer.eu>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
2026-03-16 05:04:06 -04:00
renovate[bot] 3fd6932c2d Lock file maintenance (#5175)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 08:45:41 +00:00
renovate[bot] 22c31b187a Update sigstore/gh-action-sigstore-python action to v3.2.0 (#5172)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 08:27:21 +00:00
renovate[bot] dd8c60fa76 Update stefanzweifel/git-auto-commit-action action to v7.1.0 (#5173)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 08:17:34 +00:00
renovate[bot] 5bc0f4f5b4 Update actions/checkout action to v6 (#5174)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 08:08:35 +00:00
renovate[bot] 80f3ccdcfa Update GitHub Artifact Actions (major) (#5171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 07:45:18 +00:00
renovate[bot] 537693f082 Update dependency astral-sh/uv to v0.10.10 (#5169)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 07:14:20 +00:00
renovate[bot] 72e8ded8cf Update astral-sh/setup-uv action to v7.5.0 (#5170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 06:56:36 +00:00
Harshil a48b08fb20 Bump Sphinx Related Dependencies, Fix uv and Docs Build (#5168) 2026-03-16 02:46:13 -04:00
renovate[bot] ca2a834091 Update dependency sphinx to v9 (#5167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 03:53:43 +00:00
Harshil 66e4103318 Refactor TestStickerSetWithRequest tests (#5161) 2026-03-15 23:47:09 -04:00
Poolitzer 0cceafcab3 Full support for Bot API 9.5 (#5155)
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: OuYoung <212045739+ouyooung@users.noreply.github.com>
Co-authored-by: Hethon <65696516+hethon@users.noreply.github.com>
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com>
2026-03-15 02:58:30 -04:00
renovate[bot] fb5234d9f5 Update Ruff to v0.15.6 (#5166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 01:42:49 +00:00
Harshil 6665c147d2 Preserve InlineKeyboardButton Arguments During callback_data Replacement (#5159) 2026-03-13 20:40:46 -04:00
Harshil b18e46a80d Make CI Run After chango Commits (#5157) 2026-03-12 18:09:43 -04:00
renovate[bot] f85da33619 Update dependency tornado to v6.5.5 [SECURITY] (#5164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-12 01:24:41 +00:00
Harshil cd015737eb Replace pre-commit with prek (#5142) 2026-03-07 19:51:59 -05:00
renovate[bot] 330d2c2b99 Update Ruff to v0.15.5 (#5156)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-08 00:24:13 +00:00
Harshil 0ae9f7b6c4 Full support for Bot API 9.4 (#5137)
Co-authored-by: OuYoung <212045739+ouyooung@users.noreply.github.com>
Co-authored-by: poolitzer <github@poolitzer.eu>
Co-authored-by: Hethon <65696516+hethon@users.noreply.github.com>
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com>
2026-03-07 18:29:00 -05:00
renovate[bot] cb239e7b1e Update codecov/test-results-action action to v1.2.1 (#5153)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 01:02:25 +00:00
renovate[bot] cec4a6fe6f Update astral-sh/setup-uv action to v7.3.1 (#5152)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 01:02:22 +00:00
renovate[bot] 5660fd8a16 Update dependency astral-sh/uv to v0.10.7 (#5154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 01:01:36 +00:00
renovate[bot] c19cd7b7bd Update actions/stale action to v10.2.0 (#5151)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 00:53:58 +00:00
renovate[bot] 48f8907882 Update Ruff to v0.15.4 (#5150)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 00:53:17 +00:00
Harshil f385a5e769 Remove Functionality Deprecated in Bot API 9.3 (#5143) 2026-02-24 13:29:14 -05:00
renovate[bot] f18ab3a62a Update Ruff to v0.15.2 (#5146)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 05:05:31 +00:00
renovate[bot] 4bf77904fb Update Pylint to v4.0.5 (#5145)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 00:53:52 +00:00
Poolitzer 5dec05e0c3 Fix: Moved inline test file to _inline folder (#5140) 2026-02-19 10:55:48 -05:00
renovate[bot] 3b4426fb82 Update Ruff to v0.15.1 (#5135)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-15 02:15:03 +00:00
renovate[bot] 89911bf708 Update dependency cryptography to v46.0.5 [SECURITY] (#5125)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-10 22:30:16 +00:00
Poolitzer 2e7ec1d8db Fixing failing sphinx builds (#5124) 2026-02-10 23:27:15 +01:00
renovate[bot] 8844fb3b2f Update Ruff to v0.15.0 (#5122)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: poolitzer <github@poolitzer.eu>
2026-02-10 22:01:22 +00:00
renovate[bot] b82b25feeb Update pre-commit hook cachetools to v7 (#5117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-10 17:22:38 +01:00
renovate[bot] 0653b52222 Update astral-sh/setup-uv action to v7.2.1 (#5116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:15:24 +00:00
renovate[bot] 3df3e6a534 Update dependency astral-sh/uv to v0.9.28 (#5113)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:12:57 +00:00
renovate[bot] dcf7cc4091 Update dependency pytest to v9.0.2 (#5114)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:10:19 +00:00
renovate[bot] c851d4360f Update actions/setup-python action to v6.2.0 (#5115)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:06:48 +00:00
renovate[bot] 6b42bb83d2 Update codecov/codecov-action action to v5.5.2 (#5112)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:06:19 +00:00
renovate[bot] dc587ade7e Update Ruff to v0.14.14 (#5110)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-25 00:38:39 +00:00
266 changed files with 11889 additions and 3821 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ Setting things up
.. code-block:: bash
$ pre-commit install
$ prek install -f
Finding something to do
=======================
@@ -100,7 +100,7 @@ Here's how to make a one-off code change.
.. code-block:: bash
$ pre-commit run -a
$ prek run -a
- To actually make the commit (this will trigger tests style & type checks automatically):
+1 -1
View File
@@ -32,7 +32,7 @@ The repository follows a standard structure for Python projects. Here are some k
- Read the stability guide mentioned at docs/source/stability_policy.rst to understand if your changes
are breaking or incompatible.
- Try to make sure your code is asyncio-friendly and thread-safe.
- Run `uv run pre-commit` to run pre-commit hooks before committing your changes, but after `git add`ing them.
- Run `uv run prek` to run pre-commit hooks before committing your changes, but after `git add`ing them.
- Make sure you always test your changes. Either update or write new tests in the `tests/` directory.
### Pull Requests:
-9
View File
@@ -1,9 +0,0 @@
# Config file for workflows/labelling.yml
version: 1
labels:
- label: "⚙️ dependencies"
authors: ["dependabot[bot]", "pre-commit-ci[bot]"]
- label: "🛠 code-quality"
authors: ["pre-commit-ci[bot]"]
+3
View File
@@ -26,6 +26,9 @@
// Enable automerge globally:
"automerge": true,
// Only upgrade packages if 7 days have passed:
"minimumReleaseAge": "7 days",
// Group package updates together:
"packageRules": [
// Linting dependencies in pyproject.toml in sync with the pre-commit-config hooks:
+3 -3
View File
@@ -20,7 +20,7 @@ jobs:
IS_RELEASE_PR: ${{ steps.check_title.outputs.IS_RELEASE_PR }}
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# needed for commit and push step at the end
persist-credentials: true
@@ -48,7 +48,7 @@ jobs:
# Run `chango release` if applicable - needs some additional setup.
- name: Set up Python
if: steps.check_title.outputs.IS_RELEASE_PR == 'true'
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"
@@ -63,7 +63,7 @@ jobs:
- name: Commit & Push
if: steps.check_title.outputs.IS_RELEASE_PR == 'true'
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
commit_message: "Do chango Release"
repository: ./target-repo
+3 -3
View File
@@ -26,15 +26,15 @@ jobs:
# If you do not check out your code, Copilot will do this for you.
steps:
- name: Checkout code
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
# Install a specific version of uv.
version: "0.9.13"
version: "0.11.16"
# Install 3.13:
python-version: 3.13
+3 -2
View File
@@ -1,6 +1,7 @@
name: Test Admonitions Generation
on:
pull_request:
types: [synchronize, reopened, ready_for_review]
paths:
- src/telegram/**
- docs/**
@@ -24,11 +25,11 @@ jobs:
os: [ubuntu-latest]
fail-fast: False
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
+3 -3
View File
@@ -19,11 +19,11 @@ jobs:
os: [ubuntu-latest]
fail-fast: False
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
@@ -35,7 +35,7 @@ jobs:
- name: Upload linkcheck output
# Run also if the previous steps failed
if: always()
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: linkcheck-output
path: docs/build/html/output.*
+3 -3
View File
@@ -17,17 +17,17 @@ jobs:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install the latest version of uv
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- name: Run zizmor
run: uvx zizmor --persona=pedantic --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
with:
sarif_file: results.sarif
category: zizmor
-19
View File
@@ -1,19 +0,0 @@
name: PR Labeler
on:
pull_request:
types: [opened]
permissions: {}
jobs:
pre-commit-ci:
permissions:
contents: read # for srvaroa/labeler to read config file
pull-requests: write # for srvaroa/labeler to add labels in PR
runs-on: ubuntu-latest
steps:
- uses: srvaroa/labeler@0a20eccb8c94a1ee0bed5f16859aece1c45c3e55 # v1.13.0
# Config file at .github/labeler.yml
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
+26
View File
@@ -0,0 +1,26 @@
name: Prek checks
permissions:
contents: read # Needed to see what files to run pre-commit on
on:
pull_request:
branches:
- '**' # Matches all branch names, for PRs
push:
branches:
- 'master' # Run tests on master branch
# Cancel any in-progress runs of this workflow for the same PR or branch when a new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
prek:
name: prek
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1
+11 -11
View File
@@ -17,11 +17,11 @@ jobs:
actions: write
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"
- name: Install pypa/build
@@ -30,7 +30,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: python-package-distributions
path: dist/
@@ -55,12 +55,12 @@ jobs:
steps:
- name: Download all the dists
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: python-package-distributions
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
compute-signatures:
name: Compute SHA1 Sums and Sign with Sigstore
@@ -74,7 +74,7 @@ jobs:
steps:
- name: Download all the dists
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: python-package-distributions
path: dist/
@@ -86,13 +86,13 @@ jobs:
sha1sum $file > $file.sha1
done
- name: Sign the dists with Sigstore
uses: sigstore/gh-action-sigstore-python@f832326173235dcb00dd5d92cd3f353de3188e6c # v3.1.0
uses: sigstore/gh-action-sigstore-python@a5caf349bc536fbef3668a10ed7f5cd309a4b53d # v3.2.0
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Store the distribution packages and signatures
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: python-package-distributions-and-signatures
path: dist/
@@ -110,11 +110,11 @@ jobs:
actions: read # for downloading artifacts
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Download all the dists
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: python-package-distributions-and-signatures
path: dist/
@@ -155,7 +155,7 @@ jobs:
permissions: {}
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Publish to Telegram Channel
+10 -10
View File
@@ -17,11 +17,11 @@ jobs:
actions: write
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"
- name: Install pypa/build
@@ -30,7 +30,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: python-package-distributions
path: dist/
@@ -55,12 +55,12 @@ jobs:
steps:
- name: Download all the dists
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: python-package-distributions
path: dist/
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
repository-url: https://test.pypi.org/legacy/
@@ -76,7 +76,7 @@ jobs:
steps:
- name: Download all the dists
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: python-package-distributions
path: dist/
@@ -88,13 +88,13 @@ jobs:
sha1sum $file > $file.sha1
done
- name: Sign the dists with Sigstore
uses: sigstore/gh-action-sigstore-python@f832326173235dcb00dd5d92cd3f353de3188e6c # v3.1.0
uses: sigstore/gh-action-sigstore-python@a5caf349bc536fbef3668a10ed7f5cd309a4b53d # v3.2.0
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Store the distribution packages and signatures
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: python-package-distributions-and-signatures
path: dist/
@@ -112,11 +112,11 @@ jobs:
actions: read # for downloading artifacts
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Download all the dists
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: python-package-distributions-and-signatures
path: dist/
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
# For adding labels and closing
issues: write
steps:
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
with:
# PRs never get stale
days-before-stale: 3
+3 -2
View File
@@ -1,6 +1,7 @@
name: Bot API Tests
on:
pull_request:
types: [synchronize, reopened, ready_for_review]
paths:
- src/telegram/**
- tests/**
@@ -23,11 +24,11 @@ jobs:
os: [ubuntu-latest]
fail-fast: False
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
+1
View File
@@ -1,6 +1,7 @@
name: Check Type Completeness
on:
pull_request:
types: [synchronize, reopened, ready_for_review]
paths:
- src/telegram/**
- pyproject.toml
@@ -18,7 +18,7 @@ jobs:
python-version: 3.12
pyright-version: ~=1.1.367
- name: Check Output
uses: jannekem/run-python-script-action@bbfca66c612a28f3eeca0ae40e1f810265e2ea68 # v1.7
uses: jannekem/run-python-script-action@9d8e2e0878d575fb6073277f38ce3f10ebf4f059 # v1.8
env:
TYPE_COMPLETENESS: ${{ steps.pyright-type-completeness.outputs.base-completeness-score }}
with:
+6 -4
View File
@@ -1,6 +1,7 @@
name: Unit Tests
on:
pull_request:
types: [synchronize, reopened, ready_for_review]
paths:
- src/telegram/**
- tests/**
@@ -25,11 +26,11 @@ jobs:
os: ubuntu-latest
fail-fast: False
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
@@ -86,15 +87,16 @@ jobs:
.test_report_optionals_junit.xml
- name: Submit coverage
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
env_vars: OS,PYTHON
name: ${{ matrix.os }}-${{ matrix.python-version }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
if: ${{ !cancelled() }}
with:
files: .test_report_no_optionals_junit.xml,.test_report_optionals_junit.xml
token: ${{ secrets.CODECOV_TOKEN }}
report_type: test_results
+9 -14
View File
@@ -1,14 +1,6 @@
ci:
autofix_prs: false
# We use Renovate to update this file now, but we can't disable automatic pre-commit updates
# when using the `pre-commit` GitHub Action, so we set the schedule to quarterly to avoid
# frequent updates.
autoupdate_schedule: quarterly
autoupdate_commit_msg: 'Bump `pre-commit` Hooks to Latest Versions'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.14.13'
rev: 'v0.15.15'
hooks:
# Run the linter:
- id: ruff-check
@@ -17,7 +9,7 @@ repos:
- id: ruff-format
name: ruff format
- repo: https://github.com/PyCQA/pylint
rev: v4.0.4
rev: v4.0.5
hooks:
- id: pylint
files: ^(?!(tests|docs)).*\.py$
@@ -26,11 +18,12 @@ repos:
- httpx~=0.27
- tornado~=6.4
- APScheduler>=3.10.4,<3.12.0
- cachetools>=5.3.3,<6.3.0
- cachetools>=7.0.0,<8.0.0
- aiolimiter~=1.1,<1.3
- . # this basically does `pip install -e .`
priority: 10
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
rev: v1.20.2
hooks:
- id: mypy
name: mypy-ptb
@@ -43,9 +36,10 @@ repos:
- httpx~=0.27
- tornado~=6.4
- APScheduler>=3.10.4,<3.12.0
- cachetools>=5.3.3,<6.3.0
- cachetools>=7.0.0,<8.0.0
- aiolimiter~=1.1,<1.3
- . # this basically does `pip install -e .`
priority: 10
- id: mypy
name: mypy-examples
files: ^examples/.*\.py$
@@ -56,5 +50,6 @@ repos:
additional_dependencies:
- tornado~=6.4
- APScheduler>=3.10.4,<3.12.0
- cachetools>=5.3.3,<6.3.0
- cachetools>=7.0.0,<8.0.0
- . # this basically does `pip install -e .`
priority: 10
+1 -1
View File
@@ -20,7 +20,7 @@ python:
path: .
build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "3" # latest stable cpython version
jobs:
+7 -4
View File
@@ -5,13 +5,12 @@ Credits
`Leandro Toledo <https://github.com/leandrotoledo>`_.
The current development team includes
- `Hinrich Mahler <https://github.com/Bibo-Joshi>`_ (maintainer)
- `Poolitzer <https://github.com/Poolitzer>`_ (community liaison)
- `Harshil <https://github.com/harshil21>`_
- `Poolitzer <https://github.com/Poolitzer>`_ (maintainer)
- `Harshil <https://github.com/harshil21>`_ (maintainer)
- `Abdelrahman <https://github.com/aelkheir>`_
Emeritus maintainers include
`Jannes Höke <https://github.com/jh0ker>`_ (`@jh0ker <https://t.me/jh0ker>`_ on Telegram),
`Hinrich Mahler <https://github.com/Bibo-Joshi>`_, `Jannes Höke <https://github.com/jh0ker>`_ (`@jh0ker <https://t.me/jh0ker>`_ on Telegram),
`Noam Meltzer <https://github.com/tsnoam>`_, `Pieter Schutz <https://github.com/eldinnie>`_ and `Jasmin Bom <https://github.com/jsmnbom>`_.
Contributors
@@ -58,6 +57,7 @@ The following wonderful people contributed directly or indirectly to this projec
- `gamgi <https://github.com/gamgi>`_
- `Gauthamram Ravichandran <https://github.com/GauthamramRavichandran>`_
- `Harshil <https://github.com/harshil21>`_
- `Henok Tesfamikael <https://github.com/hethon>`
- `Henry Galue <https://github.com/henryg311>`
- `Hugo Damer <https://github.com/HakimusGIT>`_
- `ihoru <https://github.com/ihoru>`_
@@ -75,10 +75,12 @@ The following wonderful people contributed directly or indirectly to this projec
- `jossalgon <https://github.com/jossalgon>`_
- `JRoot3D <https://github.com/JRoot3D>`_
- `Juan Cuevas <https://github.com/cuevasrja>`
- `karin0 <https://github.com/karin0>`_
- `kenjitagawa <https://github.com/kenjitagawa>`_
- `kennethcheo <https://github.com/kennethcheo>`_
- `Kirill Vasin <https://github.com/vasinkd>`_
- `Kjwon15 <https://github.com/kjwon15>`_
- `Krishna Chaitanya Balusu <https://github.com/Krishnachaitanyakc>`_
- `Li-aung Yip <https://github.com/LiaungYip>`_
- `locobott <https://github.com/locobott>`_
- `Loo Zheng Yuan <https://github.com/loozhengyuan>`_
@@ -104,6 +106,7 @@ The following wonderful people contributed directly or indirectly to this projec
- `Oleg Shlyazhko <https://github.com/ollmer>`_
- `Oleg Sushchenko <https://github.com/feuillemorte>`_
- `Or Bin <https://github.com/OrBin>`_
- `OuYoung <https://github.com/ouyooung>`_
- `overquota <https://github.com/overquota>`_
- `Pablo Martinez <https://github.com/elpekenin>`_
- `Paradox <https://github.com/paradox70>`_
+2 -6
View File
@@ -11,7 +11,7 @@
:target: https://pypi.org/project/python-telegram-bot/
:alt: Supported Python versions
.. image:: https://img.shields.io/badge/Bot%20API-9.3-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-10.0-blue?logo=telegram
:target: https://core.telegram.org/bots/api-changelog
:alt: Supported Bot API version
@@ -43,10 +43,6 @@
:target: https://app.codacy.com/gh/python-telegram-bot/python-telegram-bot/dashboard
:alt: Code quality: Codacy
.. image:: https://results.pre-commit.ci/badge/github/python-telegram-bot/python-telegram-bot/master.svg
:target: https://results.pre-commit.ci/latest/github/python-telegram-bot/python-telegram-bot/master
:alt: pre-commit.ci status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style: Black
@@ -81,7 +77,7 @@ After installing_ the library, be sure to check out the section on `working with
Telegram API support
~~~~~~~~~~~~~~~~~~~~
All types and methods of the Telegram Bot API **9.3** are natively supported by this library.
All types and methods of the Telegram Bot API **10.0** are natively supported by this library.
In addition, Bot API functionality not yet natively included can still be used as described `in our wiki <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Bot-API-Forward-Compatibility>`_.
Notable Features
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.14.14"
[[pull_requests]]
uid = "5110"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update codecov/codecov-action action to v5.5.2"
[[pull_requests]]
uid = "5112"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency astral-sh/uv to v0.9.28"
[[pull_requests]]
uid = "5113"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency pytest to v9.0.2"
[[pull_requests]]
uid = "5114"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update actions/setup-python action to v6.2.0"
[[pull_requests]]
uid = "5115"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update astral-sh/setup-uv action to v7.2.1"
[[pull_requests]]
uid = "5116"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update pre-commit hook cachetools to v7"
[[pull_requests]]
uid = "5117"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
highlights = "Hand over Maintainer Role from `Bibo-Joshi <https://github.com/Bibo-Joshi>`_ to `Poolitzer <https://github.com/Poolitzer>`_ and `Harshil <https://github.com/harshil21>`_"
[[pull_requests]]
uid = "5119"
author_uids = ["Bibo-Joshi"]
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.0"
[[pull_requests]]
uid = "5122"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.0"
[[pull_requests]]
uid = "5122"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
other = "Fixing failing sphinx builds"
[[pull_requests]]
uid = "5124"
author_uids = ["Poolitzer"]
closes_threads = []
@@ -0,0 +1,5 @@
dependencies = "Update dependency cryptography to v46.0.5 [SECURITY]"
[[pull_requests]]
uid = "5125"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.1"
[[pull_requests]]
uid = "5135"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,9 @@
features = "Full Support for Bot API 9.4"
pull_requests = [
{ uid = "5137", author_uid = "harshil21" },
{ uid = "5133", author_uid = "ouyooung"},
{ uid = "5141", author_uid = "hethon" },
{ uid = "5129", author_uid = "Poolitzer" },
{ uid = "5148", author_uid = "harshil21" }
]
@@ -0,0 +1,5 @@
other = "Fix: Moved inline test file to _inline folder"
[[pull_requests]]
uid = "5140"
author_uids = ["Poolitzer"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Replace `pre-commit` with `prek`"
[[pull_requests]]
uid = "5142"
author_uids = ["harshil21"]
closes_threads = ["5138"]
@@ -0,0 +1,10 @@
breaking = """Remove Functionality Deprecated in Bot API 9.3
* Remove deprecated argument and attribute ``UniqueGiftInfo.last_resale_star_count``.
* Remove deprecated argument and attribute ``Bot.get_business_account_gifts.exclude_limited``.
* :attr:`telegram.UniqueGift.gift_id` is now a positional argument.
"""
[[pull_requests]]
uid = "5143"
author_uids = ["harshil21"]
closes_threads = ["5093"]
@@ -0,0 +1,5 @@
internal = "Update Pylint to v4.0.5"
[[pull_requests]]
uid = "5145"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.2"
[[pull_requests]]
uid = "5146"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.4"
[[pull_requests]]
uid = "5150"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update actions/stale action to v10.2.0"
[[pull_requests]]
uid = "5151"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update astral-sh/setup-uv action to v7.3.1"
[[pull_requests]]
uid = "5152"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update codecov/test-results-action action to v1.2.1"
[[pull_requests]]
uid = "5153"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency astral-sh/uv to v0.10.7"
[[pull_requests]]
uid = "5154"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
features = "Full support for Bot API 9.5"
[[pull_requests]]
uid = "5155"
author_uids = ["Poolitzer"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.5"
[[pull_requests]]
uid = "5156"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Make CI run after chango commits"
[[pull_requests]]
uid = "5157"
author_uids = ["harshil21"]
closes_threads = ["5144"]
@@ -0,0 +1,5 @@
bugfixes = "Preserve `InlineKeyboardButton` Arguments During `callback_data` Replacement"
[[pull_requests]]
uid = "5159"
author_uids = ["harshil21"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Refactor `TestStickerSetWithRequest` tests"
[[pull_requests]]
uid = "5161"
author_uids = ["harshil21"]
closes_threads = ["4514"]
@@ -0,0 +1,5 @@
dependencies = "Update dependency tornado to v6.5.5 [SECURITY]"
[[pull_requests]]
uid = "5164"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.6"
[[pull_requests]]
uid = "5166"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency sphinx to v9"
[[pull_requests]]
uid = "5167"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Bump Sphinx Related Dependencies, Fix `uv` and Docs Build"
[[pull_requests]]
uid = "5168"
author_uids = ["harshil21"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency astral-sh/uv to v0.10.10"
[[pull_requests]]
uid = "5169"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
other = "Update astral-sh/setup-uv action to v7.5.0"
[[pull_requests]]
uid = "5170"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update GitHub Artifact Actions (major)"
[[pull_requests]]
uid = "5171"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update sigstore/gh-action-sigstore-python action to v3.2.0"
[[pull_requests]]
uid = "5172"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update stefanzweifel/git-auto-commit-action action to v7.1.0"
[[pull_requests]]
uid = "5173"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update actions/checkout action to v6"
[[pull_requests]]
uid = "5174"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Lock file maintenance"
[[pull_requests]]
uid = "5175"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
other = "Bump Version to v22.7"
[[pull_requests]]
uid = "5176"
author_uids = ["harshil21"]
closes_threads = []
+5
View File
@@ -0,0 +1,5 @@
bugfixes = "Fixed incorrect isinstance check in class telegram.ext.filters._MergedFilter for or_filter."
[[pull_requests]]
uid = "5125"
author_uids = ["gistrec"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.7"
[[pull_requests]]
uid = "5177"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Migrate from deprecated test-results-action to codecov-action"
[[pull_requests]]
uid = "5183"
author_uids = ["Krishnachaitanyakc"]
closes_threads = ["5158"]
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.8"
[[pull_requests]]
uid = "5184"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
dependencies = "Update dependency cryptography to v46.0.6 [SECURITY]"
[[pull_requests]]
uid = "5185"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
other = "Centralize `de_json` into `TelegramObject`"
[[pull_requests]]
uid = "5186"
author_uids = ["harshil21"]
closes_threads = []
@@ -0,0 +1,5 @@
other = "Update codecov/codecov-action action to v5.5.4"
[[pull_requests]]
uid = "5190"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update astral-sh/setup-uv action to v7.6.0"
[[pull_requests]]
uid = "5191"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency astral-sh/uv to v0.11.2"
[[pull_requests]]
uid = "5192"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency mypy to v1.20.0"
[[pull_requests]]
uid = "5193"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update github/codeql-action action to v4.35.1"
[[pull_requests]]
uid = "5194"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,24 @@
features = """
Full Support for Bot API 9.6
.. warning::
- Bot API 9.6 replaces the field ``correct_option_id`` of ``Poll`` with the new field ``correct_option_ids``. The field ``correct_option_id`` is still present in PTB for backward compatibility, but it will be removed in future releases.
- Bot API 9.6 replaces the argument ``correct_option_id`` of ``Bot.send_poll`` with the new argument ``correct_option_ids``. The argument ``correct_option_id`` is still present in PTB for backward compatibility, but it will be removed in future releases.
- Bot API 9.6 introduces a now required argument ``persistent_id`` to ``PollOption``. For backward compatibility, the argument is currently still marked as optional in the signature and its presence is enforced through a runtime check. In future versions, this argument will be made required in the signature as well.
- Bot API 9.6 introduces a now required argument ``option_persistent_ids`` to ``PollAnswer``. For backward compatibility, the argument is currently still marked as optional in the signature and its presence is enforced through a runtime check. In future versions, this argument will be made required in the signature as well.
- Bot API 9.6 introduces a now required argument ``allows_revoting`` to ``Poll``. For backward compatibility, the argument is currently still marked as optional in the signature and its presence is enforced through a runtime check. In future versions, this argument will be made required in the signature as well.
Please make sure to update your code accordingly to avoid potential issues in the future. We recommend using keyword arguments to ensure compatibility with future updates.
"""
pull_requests = [
{ uid = "5196", author_uid = "harshil21" },
{ uid = "5202", author_uid = "ouyooung" },
{ uid = "5197", author_uid = "harshil21" },
]
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.9"
[[pull_requests]]
uid = "5198"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Mypy to v1.20.1"
[[pull_requests]]
uid = "5199"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
dependencies = "Update dependency cryptography to v46.0.7 [SECURITY]"
[[pull_requests]]
uid = "5203"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.10"
[[pull_requests]]
uid = "5205"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency pytest to v9.0.3 [SECURITY]"
[[pull_requests]]
uid = "5206"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.11"
[[pull_requests]]
uid = "5209"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.12"
[[pull_requests]]
uid = "5217"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update actions/upload-artifact action to v7.0.1"
[[pull_requests]]
uid = "5220"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency astral-sh/uv to v0.11.8"
[[pull_requests]]
uid = "5221"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update github/codeql-action action to v4.35.2"
[[pull_requests]]
uid = "5222"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Mypy to v1.20.2"
[[pull_requests]]
uid = "5223"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update jannekem/run-python-script-action action to v1.8"
[[pull_requests]]
uid = "5224"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,33 @@
features = """
Full Support for Bot API 10.0
.. warning::
- Bot API 10.0 introduces a now required argument ``members_only`` to ``Poll``. For backward compatibility, the argument is currently still marked as optional in the signature and its presence is enforced through a runtime check. In future versions, this argument will be made required in the signature as well.
Please make sure to update your code accordingly to avoid potential issues in the future. We recommend using keyword arguments to ensure compatibility with future updates.
"""
deprecations = """
* Deprecated passing the ``filename`` parameter positionally to the classes:
* ``InputMediaAnimation``
* ``InputMediaAudio``
* ``InputMediaPhoto``
* ``InputMediaDocument``
* ``InputMediaVideo``
Please pass ``filename`` as a keyword argument instead, as this parameter will become keyword-only in the future.
* Deprecated ``InputPollOption.de_json``. The class ``InputPollOption`` is input only and its ``de_json`` method will be removed in future versions. The Bot API 10.0 ``media`` field of ``InputPollOption`` will not be included for deserialization.
"""
pull_requests = [
{ uid = "5229", author_uid = "aelkheir", closes_threads = ["5228"] },
{ uid = "5230", author_uid = "harshil21" },
{ uid = "5235", author_uid = "harshil21" },
{ uid = "5238", author_uid = "harshil21" },
{ uid = "5232", author_uid = "aelkheir" },
{ uid = "5232", author_uid = ["Poolitzer", "Phil9l", "harshil21", "aelkheir"] },
]
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.13"
[[pull_requests]]
uid = "5233"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
bugfixes = "`Update.effective_user` now checks for `channel_post` and `edited_channel_post`"
[[pull_requests]]
uid = "5237"
author_uids = ["karin0"]
closes_threads = ["5236"]
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.14"
[[pull_requests]]
uid = "5245"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
security = "Disallow packages newer than last 7 days"
[[pull_requests]]
uid = "5247"
author_uids = ["harshil21"]
closes_threads = ["5195"]
@@ -0,0 +1,5 @@
other = "Make instantiation of ``TelegramObject``'s 15% faster"
[[pull_requests]]
uid = "5250"
author_uids = ["harshil21"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update Ruff to v0.15.15"
[[pull_requests]]
uid = "5252"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency astral-sh/uv to v0.11.16"
[[pull_requests]]
uid = "5253"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update dependency sphinxcontrib-mermaid to v2.0.2"
[[pull_requests]]
uid = "5254"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update actions/stale action to v10.3.0"
[[pull_requests]]
uid = "5255"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update github/codeql-action action to v4.36.0"
[[pull_requests]]
uid = "5256"
author_uids = ["renovate[bot]"]
closes_threads = []
@@ -0,0 +1,5 @@
internal = "Update pypa/gh-action-pypi-publish action to v1.14.0"
[[pull_requests]]
uid = "5257"
author_uids = ["renovate[bot]"]
closes_threads = []
+2 -1
View File
@@ -52,6 +52,7 @@ PRIVATE_BASE_CLASSES = {
"_BaseMedium": "TelegramObject",
"_CredentialsBase": "TelegramObject",
"_ChatBase": "TelegramObject",
"_BaseInputMedia": "TelegramObject",
}
@@ -101,7 +102,7 @@ def autodoc_process_docstring(
"""
# 1) Insert the Keyword Args and "Shortcuts" admonitions for the Bot methods
method_name = name.split(".")[-1]
method_name = name.rsplit(".", maxsplit=1)[0]
if (
name.startswith("telegram.Bot.")
and what == "method"

Some files were not shown because too many files have changed in this diff Show More