Commit graph

1876 commits

Author SHA1 Message Date
Alex Root Junior
3ad16be507
Implemented handler flags feature (#728)
* Implemented handler flag feature

* Cover tests
2021-10-25 23:37:14 +03:00
darksidecat
5f07cb3d06
Close bots sessions after emit_shutdown (#734)
* Close bots sessions after emit_shutdown

* avoid unclosed connections if get exception in emit_shutdown

* add patchnote
2021-10-23 01:04:54 +03:00
darksidecat
42cba8976f
Bound filters resolving rework, filters with default argument (#727)
* bound filters resolving rework, filters with default argument

* bound filters resolving rework, filters with default argument

* Update 727.misc

* clarification of the comment about skipping filter

* fix data transfer from parent to included routers filters

* fix checking containing value in generator

* Update docs/dispatcher/filters/index.rst

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

* Update 727.misc

* reformat

* better iterable types

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-10-12 22:29:57 +03:00
Alex Root Junior
f97367b3ee More docs 2021-10-12 01:11:53 +03:00
Alex Root Junior
3931253a88 Added changelog for recent changes 2021-10-11 01:44:55 +03:00
Alex Root Junior
7c6cf3c122 Rework FSM storage key 2021-10-11 01:30:19 +03:00
Alex Root Junior
8c4d4ef30a Fix I18n context for error handlers 2021-10-11 01:29:53 +03:00
Alex Root Junior
c3cdd75ede Update README and docs main page 2021-10-11 01:29:06 +03:00
Alex Root Junior
3f2bcbd8d1 Added MagicData filter 2021-10-11 01:27:07 +03:00
Alex Root Junior
2d21cb22f1 Bump dependencies 2021-10-11 01:26:41 +03:00
Alex Root Junior
02ca5589aa Added Python 3.10 classifier 2021-10-06 22:59:23 +03:00
Alex Root Junior
7405db2ad3
Enable Python 3.10 for tests (#719)
* Try to test on Python 3.10

* Prevent to YAML type cast

* Bump poetry

* Removed async_lru

* Disable fail-fast on tests

* Fixed typing

* Added patch-notes
2021-10-06 22:49:14 +03:00
darksidecat
99c99cec78
Add middleware for logging outgoing requests (#716)
* add middleware for logging outgoing requests

* add middleware description

* fix RequestMiddlewareType callable signature

* undo `fix`, update signatures in tests

* remove repeating code

* accept proposed changes

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

* update tests

* add patchnote

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-10-06 00:57:26 +03:00
Alex Root Junior
45a1fb2749
Improve filters factory resolve error (#718) 2021-10-06 00:10:46 +03:00
Alex Root Junior
275bd509a1 Update changelog 2021-09-24 00:10:59 +03:00
Alex Root Junior
c19cbc6a5f Added html/md_text properties to Message object and refactor I18n context 2021-09-23 23:45:22 +03:00
Alex Root Junior
481aec2144 Bump version 2021-09-22 02:00:45 +03:00
Alex Root Junior
e4046095d7
Dev 3.x i18n & improvements (#696)
* Added base code and make code improvements
* Auto-exclude coverage for `if TYPE_CHECKING:`
* Fixed current coverage
* Cover I18n module
* Update pipeline
* Fixed annotations
* Added docs
* Move exceptions
* Added tests for KeyboardBuilder and initial docs
* Remove help generator (removed from sources tree, requires rewrite)
* Added patch-notes #698, #699, #700, #701, #702, #703
2021-09-22 00:52:38 +03:00
Christian Clauss
5bd1162f57
tests.yml: Upgrade to actions/setup-python@v2 (#686) 2021-09-10 00:27:07 +03:00
Alex Root Junior
40cb222314 Bump version 2021-09-10 00:02:53 +03:00
Alex Root Junior
cfd2a9968e
Reworked handlers in use (#682)
* Reworked handlers in use util

* Added patch-notes
2021-09-07 01:04:33 +03:00
Alex Root Junior
e356ede5de
Updated pre-commit hook (#681)
* Updated pre-commit config and reformat code

* Added changelog
2021-09-07 00:32:43 +03:00
Andrey Tikhonov
90b3a99039
iter states in states group (#666)
* iter states in states group

* fix type hint

* remove empty line

* add changes for doc
2021-09-05 23:55:38 +03:00
darksidecat
714ac8896c
Move update type detecting from Dispatcher to Update (#669)
* move update type detecting to Update

* requested changes

* fix typo

* requested changes

* add docstring

* Update CHANGES/669.misc

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

* move mypy hack to utils, add lru_cache configuration

* More accurate description of the exception, thanks @uwinx

* Update CHANGES/669.misc

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>

* Callable import fix

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-09-05 23:49:23 +03:00
Daniil Kovalenko
7c0e229301
Fix incorrect type checking in KeyboardBuilder (#674)
* Fix incorrect type checking in KeyboardBuilder

* Add a patch note

* Update CHANGES/674.bugfix

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-08-27 14:36:03 +03:00
Alex Root Junior
18a93aab60
Disabled ContentTypesFilter by default (#668)
* Disabled ContentTypesFilter by default

* Rename file

* Update docs
2021-08-20 02:39:03 +03:00
Alex Root Junior
5851e32266 Bump version // 2 2021-08-17 03:07:38 +03:00
Alex Root Junior
2aa8c38691 Bump version 2021-08-17 03:06:52 +03:00
Alex Root Junior
9238533e93
Feature/rework middlewares chain (#664)
* Reworked middlewares chain

* Added description for router name

* Added patch-notes

* Fixed type hints
2021-08-17 00:43:27 +03:00
darksidecat
c1f605c6f5
add aliases for edit/delete reply markup to Message (#662)
* add aliases for edit/delete reply markup to Message

* add towncrier patch note

* add missed towncrier patch note description
2021-08-17 00:11:47 +03:00
darksidecat
04bbc8211c
add stategroup filter (#659) 2021-08-17 00:09:11 +03:00
darksidecat
71eb5fc44e
fix #660 prepare parse mode for input_message_content (#661)
* fix #660 prepare parse mode for input_message_content of InlineQueryResult

* remove redundant get

* black lint

* add towncrier patch note
2021-08-17 00:08:36 +03:00
darksidecat
7cb0ac1ee2
add allow_sending_without_reply param to Message reply aliases (#663) 2021-08-17 00:07:38 +03:00
evgfilim1
0ca9f98baf
Improve .editorconfig (#658)
* Improve .editorconfig

This is a continuation of https://github.com/aiogram/aiogram/pull/653#pullrequestreview-721944497

* Fix wildcard

* Fixes from review comments
2021-08-05 22:25:13 +03:00
Alex Root Junior
058d858607 Update towncrier config 2021-08-03 23:50:10 +03:00
Oleg A
f2f276b8cf
refactor: remove redundant pytest marks (#654) 2021-08-03 23:40:14 +03:00
Oleg A
fff33e4ac9
Redis storage speedup globals (#652)
* chore: redis storage speedup globals #651

* chore: temp ignore aioredis typing issue

* Added patch-notes

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-08-03 23:39:04 +03:00
Oleg A
89f7debc85
Add .editorconfig support (#653)
* feat: add .editorconfig support

* Added record to changes list

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-08-03 23:10:18 +03:00
evgfilim1
18b268f0b6
Update installation instructions (#655)
* Update installation instructions

* Small fix for 2.x branch & make instructions brief

* Style fix
2021-08-03 02:06:52 +03:00
Alex Root Junior
f4ca858571 Added possibility to use notes without issue 2021-08-01 19:56:01 +03:00
Alex Root Junior
9114abe919
towncrier integration (#647)
* Added towncrier and clone changelog from GitHub Releases page

* Added record to changelog

* Extended makefile

* Fix typo

* Changed ref in changelog

* Auto-confirm towncrier question on build

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-08-01 19:08:03 +03:00
Alex Root Junior
16cf6419d3 Rename deployment script 2021-08-01 01:19:03 +03:00
Alex Root Junior
a19b6bcf3a Bump version // 2 2021-08-01 01:11:46 +03:00
Alex Root Junior
e5a7c69e17 Bump version 2021-08-01 01:09:43 +03:00
Alex Root Junior
5c1ea85e9d Remove frozenlist 2021-08-01 00:35:50 +03:00
Alex Root Junior
c3844bb18f Added detection of API Errors and fixed coverage 2021-08-01 00:34:50 +03:00
Alex Root Junior
4f2cc75951
Global filters for router (#644)
* Bump version

* Added more comments

* Cover registering global filters

* Reformat code

* Add more tests

* Rework event propagation to routers mechanism. Fixed compatibility with Python 3.10 syntax (match keyword)

* Fixed tests

* Fixed coverage

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-07-31 23:34:09 +03:00
Alex Root Junior
a70ecb767f Bump version 2021-07-29 00:42:53 +03:00
Alex Root Junior
ac2b0bb198
[3.x] Bot API 5.3 + Improvements (#618)
* Regenerate API

* Update code

* Fixed command filter for photos

* Fix tests so they are able to run

* Test new and renamed API methods

* Reformat files

* Fix outer_middleware resolution (#637) (#640)

* Fix outer_middleware resolution (#637)

* Reformat files

* Reorder routers when resolve middlewares

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

* Added possibility to use empty callback data factory filter

* Rename KeyboardConstructor to KeyboardBuilder

* Fixed type

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-07-29 00:40:50 +03:00
evgfilim1
4599913e18
Fix not all args are passed to handler function invocation (#633) 2021-07-18 14:10:51 +03:00