Support validating init data using only bot id. (#1715)

* Support validating init data using only bot id.

* Add changes file.

* Add tests.

* Install `signature` dependencies in CI.
This commit is contained in:
sheldy 2025-08-17 18:15:23 +02:00 committed by GitHub
parent ab8af773cf
commit 6aa6e008c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 147 additions and 10 deletions

View file

@ -29,11 +29,11 @@ jobs:
- macos-latest
- windows-latest
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
defaults:
# Windows sucks. Force use bash instead of PowerShell
@ -63,7 +63,7 @@ jobs:
- name: Install project dependencies
run: |
pip install -e .[dev,test,redis,mongo,proxy,i18n,fast]
pip install -e .[dev,test,redis,mongo,proxy,i18n,fast,signature]
- name: Lint code
run: |
@ -81,7 +81,7 @@ jobs:
if: ${{ env.IS_UBUNTU == 'true' }}
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: '7.0'
mongodb-version: "7.0"
mongodb-username: mongo
mongodb-password: mongo
mongodb-port: 27017
@ -111,8 +111,8 @@ jobs:
- macos-latest
# - windows-latest
python-version:
- 'pypy3.9'
- 'pypy3.10'
- "pypy3.9"
- "pypy3.10"
defaults:
# Windows sucks. Force use bash instead of PowerShell
@ -134,7 +134,7 @@ jobs:
- name: Install project dependencies
run: |
pip install -e .[dev,test,redis,mongo,proxy,i18n,fast]
pip install -e .[dev,test,redis,mongo,proxy,i18n,fast,signature]
- name: Run tests
run: |