Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
16605c5
Bump `pre-commit` Hooks to Latest Versions (#4643)
pre-commit-ci[bot] Jan 7, 2025
f57dd52
Add `BaseUpdateProcessor.current_concurrent_updates` (#4626)
Bibo-Joshi Jan 14, 2025
dd592cd
Simplify Handling of Empty Data in `TelegramObject.de_json` and Frien…
Bibo-Joshi Jan 14, 2025
61b87ba
Support `allow_paid_broadcast` in `AIORateLimiter` (#4627)
Bibo-Joshi Jan 23, 2025
5dd7b8f
Extend Customization Support for `Bot.base_(file_)url` (#4632)
Bibo-Joshi Jan 23, 2025
d7e063d
Overhaul Admonition Insertion in Documentation (#4462)
harshil21 Jan 31, 2025
6319f4b
Bump `codecov/test-results-action` from 1.0.1 to 1.0.2 (#4663)
dependabot[bot] Feb 2, 2025
4cdb1a0
Bump `astral-sh/setup-uv` from 5.1.0 to 5.2.2 (#4664)
dependabot[bot] Feb 2, 2025
79acc1a
Bump `actions/stale` from 9.0.0 to 9.1.0 (#4667)
dependabot[bot] Feb 2, 2025
a2150b3
Accept `datetime.timedelta` Input in `Bot` Method Parameters (#4651)
Bibo-Joshi Feb 2, 2025
69ddc47
Bump `dependabot/fetch-metadata` from 2.2.0 to 2.3.0 (#4666)
dependabot[bot] Feb 2, 2025
64006aa
Bump `actions/setup-python` from 5.3.0 to 5.4.0 (#4665)
dependabot[bot] Feb 2, 2025
dfb0ae3
Use Fine Grained Permissions for GitHub Actions Workflows (#4668)
Bibo-Joshi Feb 2, 2025
f9f1533
Refactor Tests for `TelegramObject` Classes with Subclasses (#4654)
Bibo-Joshi Feb 6, 2025
9418070
Remove Backward Compatibility for `write_timeout` for API methods wit…
Bibo-Joshi Feb 6, 2025
0d26470
Remove Parameter `quote` of `Message` Shortcuts
Bibo-Joshi Feb 6, 2025
d35de6d
Remove `filters.CHAT` and `filters.StatusUpdate.USER_SHARED`
Bibo-Joshi Feb 6, 2025
f130e2d
Add versionchanged to message
Bibo-Joshi Feb 6, 2025
96309e0
Removed `disable_web_page_preview` and `quote` from `Defaults`
Bibo-Joshi Feb 6, 2025
08c57d8
Fix tests
Bibo-Joshi Feb 6, 2025
a16cb2a
Remove `constants.IQL.MIN/MAX_SWITCH_PM_TEXT_LENGTH`
Bibo-Joshi Feb 6, 2025
403f9e6
Remove `*_timeout` parameters of `Application.run_polling` and `Updat…
Bibo-Joshi Feb 6, 2025
380c3bb
mix docs
Bibo-Joshi Feb 6, 2025
0cb6f81
update message tests some more and try improving coverage
Bibo-Joshi Feb 6, 2025
bd693b6
try fixing docs again
Bibo-Joshi Feb 6, 2025
15377d9
Remove `proxy_url` in `HTTPXRequest` and `ApplicationBuilder`
Bibo-Joshi Feb 6, 2025
aa1c100
Passport deprecations
Bibo-Joshi Feb 6, 2025
da6fb20
try fixing failing tests
Bibo-Joshi Feb 6, 2025
c5cb2ff
More Deprecation findings by Pool
Bibo-Joshi Feb 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/dependabot-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
types: [opened, reopened]

permissions: {}

jobs:
process-dependabot-prs:
permissions:
Expand All @@ -16,7 +18,7 @@ jobs:

- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7 # v2.3.0

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docs-linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
paths:
- .github/workflows/docs-linkcheck.yml

permissions: {}

jobs:
test-sphinx-build:
name: test-sphinx-linkcheck
Expand All @@ -21,7 +23,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ on:
branches:
- master

permissions: {}

jobs:
test-sphinx-build:
name: test-sphinx-build
runs-on: ${{matrix.os}}
permissions:
# for uploading artifacts
actions: write
strategy:
matrix:
python-version: ['3.10']
Expand All @@ -22,7 +27,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/gha_security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- master
pull_request:

permissions: {}

jobs:
zizmor:
name: Security Analysis with zizmor
Expand All @@ -19,13 +21,13 @@ jobs:
with:
persist-credentials: false
- name: Install the latest version of uv
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
- 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@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
with:
sarif_file: results.sarif
category: zizmor
2 changes: 2 additions & 0 deletions .github/workflows/labelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
types: [opened]

permissions: {}

jobs:
pre-commit-ci:
permissions:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ on:
schedule:
- cron: '8 4 * * *'

permissions: {}

jobs:
lock:
runs-on: ubuntu-latest
permissions:
# For locking the threads
issues: write
pull-requests: write
steps:
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
with:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@ on:
# manually trigger the workflow
workflow_dispatch:

permissions: {}

jobs:
build:
name: Build Distribution
runs-on: ubuntu-latest
outputs:
TAG: ${{ steps.get_tag.outputs.TAG }}
permissions:
# for uploading artifacts
actions: write

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.x"
- name: Install pypa/build
Expand Down Expand Up @@ -46,6 +51,7 @@ jobs:
url: https://pypi.org/p/python-telegram-bot
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
actions: read # for downloading artifacts

steps:
- name: Download all the dists
Expand All @@ -64,6 +70,7 @@ jobs:

permissions:
id-token: write # IMPORTANT: mandatory for sigstore
actions: write # for up/downloading artifacts

steps:
- name: Download all the dists
Expand Down Expand Up @@ -100,6 +107,7 @@ jobs:

permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
actions: read # for downloading artifacts

steps:
- name: Download all the dists
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@ on:
# manually trigger the workflow
workflow_dispatch:

permissions: {}

jobs:
build:
name: Build Distribution
runs-on: ubuntu-latest
outputs:
TAG: ${{ steps.get_tag.outputs.TAG }}
permissions:
# for uploading artifacts
actions: write

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.x"
- name: Install pypa/build
Expand Down Expand Up @@ -46,6 +51,7 @@ jobs:
url: https://test.pypi.org/p/python-telegram-bot
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
actions: read # for downloading artifacts

steps:
- name: Download all the dists
Expand All @@ -66,6 +72,7 @@ jobs:

permissions:
id-token: write # IMPORTANT: mandatory for sigstore
actions: write # for up/downloading artifacts

steps:
- name: Download all the dists
Expand Down Expand Up @@ -102,6 +109,7 @@ jobs:

permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
actions: read # for downloading artifacts

steps:
- name: Download all the dists
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ on:
schedule:
- cron: '42 2 * * *'

permissions: {}

jobs:
stale:
runs-on: ubuntu-latest
permissions:
# For adding labels and closing
issues: write
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
with:
# PRs never get stale
days-before-stale: 3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
# Run monday and friday morning at 03:07 - odd time to spread load on GitHub Actions
- cron: '7 3 * * 1,5'

permissions: {}

jobs:
check-conformity:
name: check-conformity
Expand All @@ -25,7 +27,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/type_completeness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
branches:
- master

permissions: {}

jobs:
test-type-completeness:
name: test-type-completeness
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/type_completeness_monthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
# Run first friday of the month at 03:17 - odd time to spread load on GitHub Actions
- cron: '17 3 1-7 * 5'

permissions: {}

jobs:
test-type-completeness:
name: test-type-completeness
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
# Run monday and friday morning at 03:07 - odd time to spread load on GitHub Actions
- cron: '7 3 * * 1,5'

permissions: {}

jobs:
pytest:
name: pytest
Expand All @@ -28,7 +30,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down Expand Up @@ -97,7 +99,7 @@ jobs:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
uses: codecov/test-results-action@9739113ad922ea0a9abb4b2c0f8bf6a4aa8ef820 # v1.0.1
uses: codecov/test-results-action@4e79e65778be1cecd5df25e14af1eafb6df80ea9 # v1.0.2
if: ${{ !cancelled() }}
with:
files: .test_report_no_optionals_junit.xml,.test_report_optionals_junit.xml
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ docs/_build/
# PyBuilder
target/
.idea/
.run/

# Sublime Text 2
*.sublime*
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.5.6'
rev: 'v0.8.6'
hooks:
- id: ruff
name: ruff
Expand All @@ -18,18 +18,18 @@ repos:
- cachetools>=5.3.3,<5.5.0
- aiolimiter~=1.1,<1.3
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
rev: 24.10.0
hooks:
- id: black
args:
- --diff
- --check
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/PyCQA/pylint
rev: v3.3.2
rev: v3.3.3
hooks:
- id: pylint
files: ^(?!(tests|docs)).*\.py$
Expand All @@ -41,7 +41,7 @@ repos:
- aiolimiter~=1.1,<1.3
- . # this basically does `pip install -e .`
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.14.1
hooks:
- id: mypy
name: mypy-ptb
Expand All @@ -68,7 +68,7 @@ repos:
- cachetools>=5.3.3,<5.5.0
- . # this basically does `pip install -e .`
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.19.1
hooks:
- id: pyupgrade
args:
Expand Down
2 changes: 1 addition & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The following wonderful people contributed directly or indirectly to this projec
- `Rahiel Kasim <https://github.com/rahiel>`_
- `Riko Naka <https://github.com/rikonaka>`_
- `Rizlas <https://github.com/rizlas>`_
- `Snehashish Biswas <https://github.com/Snehashish06>`_
- Snehashish Biswas
- `Sahil Sharma <https://github.com/sahilsharma811>`_
- `Sam Mosleh <https://github.com/sam-mosleh>`_
- `Sascha <https://github.com/saschalalala>`_
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Major Changes
Documentation Improvements
--------------------------

- Documentation Improvements (:pr:`4565` by `Snehashish06 <https://github.com/Snehashish06>`_, :pr:`4573`)
- Documentation Improvements (:pr:`4565` by Snehashish06, :pr:`4573`)

Version 21.7
============
Expand Down
Loading
Loading