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

Added full support of Bot API 7.2 #1444

Merged
merged 9 commits into from
Apr 22, 2024
Merged

Added full support of Bot API 7.2 #1444

merged 9 commits into from
Apr 22, 2024

Conversation

JrooTJunior
Copy link
Member

@JrooTJunior JrooTJunior added the api Issues or new features of Bot API label Mar 31, 2024
Copy link

github-actions bot commented Mar 31, 2024

✔️ Changelog found.

Thank you for adding a description of the changes

@github-actions github-actions bot added the 3.x Issue or PR for stable 3.x version label Mar 31, 2024
RoLO0u and others added 2 commits April 8, 2024 01:05
* Fixing tests and content types for Telegram Bot API 7.2

* Adding changelog for 1453 PR
Copy link

codecov bot commented Apr 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (acf52f4) to head (4aca433).
Report is 2 commits behind head on dev-3.x.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           dev-3.x     #1444    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          412       422    +10     
  Lines        10682     10932   +250     
==========================================
+ Hits         10682     10932   +250     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
aiogram/__meta__.py 100.00% <100.00%> (ø)
aiogram/client/bot.py 100.00% <100.00%> (ø)
aiogram/dispatcher/middlewares/user_context.py 100.00% <100.00%> (ø)
aiogram/dispatcher/router.py 100.00% <100.00%> (ø)
aiogram/enums/content_type.py 100.00% <ø> (ø)
aiogram/enums/update_type.py 100.00% <100.00%> (ø)
aiogram/fsm/middleware.py 100.00% <100.00%> (ø)
aiogram/fsm/storage/base.py 100.00% <100.00%> (ø)
aiogram/fsm/storage/redis.py 100.00% <100.00%> (ø)
aiogram/methods/__init__.py 100.00% <100.00%> (ø)
... and 56 more

This update significantly refactors UserContextMiddleware to leverage a new class, EventContext. Instead of resolving event context as a tuple, it now produces an instance of EventContext. Additional adjustments include supporting a business connection ID for event context identification and facilitating backwards compatibility. Tests and other files were also updated accordingly for these changes.
@JrooTJunior JrooTJunior marked this pull request as ready for review April 22, 2024 10:48
@JrooTJunior JrooTJunior merged commit 0574786 into dev-3.x Apr 22, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issue or PR for stable 3.x version api Issues or new features of Bot API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants