Forevka
125fc22ff9
Added ability to specify which update bot need to receive and process while using polling mode ( #617 )
...
* provide allowed_updates in polling mode
2021-07-05 01:41:27 +03:00
Alex Root Junior
83d6ab48c5
Backport and improvements ( #601 )
...
* Backport RedisStorage, deep-linking
* Allow prereleases for aioredis
* Bump dependencies
* Correctly skip Redis tests on Windows
* Reformat tests code and bump Makefile
2021-06-15 01:45:31 +03:00
Alex Root Junior
9cf189ffd2
Cover 100%
2021-05-13 22:04:10 +03:00
Alex Root Junior
74db2c47e6
Small changes in documentation
2021-05-12 23:00:12 +03:00
Alex Root Junior
0e72d8e65b
[3.0] Bot API 5.1 + FSM + Utils ( #525 )
...
* Regenerate corresponding to Bot API 5.1
* Added base of FSM. Markup constructor and small refactoring
* Fix dependencies
* Fix mypy windows error
* Move StatesGroup.get_root() from meta to class
* Fixed chat and user constraints
* Update pipeline
* Remove docs pipeline
* Added GLOBAL_USER FSM strategy
* Reformat code
* Fixed Dispatcher._process_update
* Bump Bot API 5.2. Added integration with MagicFilter
* Coverage
2021-05-11 23:04:32 +03:00
Alex Root Junior
d189853737
Increase timeout for MacOS pipelines.
2021-02-07 19:20:37 +02:00
Alex Root Junior
4008a3114d
Upgrade architecture + 5.0 Bot API ( #469 )
...
Upgrade architecture + 5.0 Bot API (#469 )
* Moved `methods`, `types` and `client` to root package
* Removed update handler from routers to dispatcher
* Reworked events propagation mechanism to handlers
* Reworked inner middlewares logic (very small change)
* Updated to Bot API 5.0
* Initial migration from MkDocs to Sphinx + config for readthedocs
2021-01-26 21:20:52 +02:00
Alex Root Junior
7f26ec9935
Implement new middlewares
2020-05-26 00:23:35 +03:00
mpa
4124770b0e
refactor(handler): rename observers
...
Rename observers but with backward compatibility, relevant documentation
2020-05-10 03:02:31 +04:00
Alex Root Junior
0bd7fc2c7e
Fix async test for py3.7
2020-02-22 23:12:42 +02:00
Alex Root Junior
eea75b8e9a
Fix typing
2020-02-22 01:28:46 +02:00
Alex Root Junior
3f5c51e805
Add webhook feed method to Dispatcher
2020-02-22 00:59:10 +02:00
Alex Root Junior
690223f4e0
Try prevent to attr-defined mypy error
2020-01-11 21:33:45 +02:00
Alex Root Junior
8e5cb067df
Use AsyncMock with python 3.8 instead of asynctest
2020-01-11 21:15:46 +02:00
Alex Root Junior
e12aca9046
Move prepare_<field> to single module and add tests for default parse_mode
2019-12-26 01:35:21 +02:00
Alex Root Junior
a2cb637ed9
Make Dispatcher._run_polling public
2019-12-26 00:00:53 +02:00
jrootjunior
9dc1e9ff1a
Rename run to run_polling
2019-12-12 11:58:21 +02:00
jrootjunior
acbe1f81b6
Cover Dispatcher.run
2019-12-11 15:49:42 +02:00
jrootjunior
90a035ed29
Cover Dispatcher._run_polling
2019-12-11 15:47:08 +02:00
jrootjunior
dcbf9b2760
Mock Dispatcher._polling
2019-12-11 15:39:50 +02:00
jrootjunior
2451b88ff5
Disable old API exceptions
2019-12-11 15:25:28 +02:00
jrootjunior
1723a83697
Cover Dispatcher.process_update
2019-12-11 15:22:52 +02:00
Alex Root Junior
db397e3a05
Rework polling and start covering
2019-12-10 01:14:58 +02:00
Alex Root Junior
38c725db46
Fix test "test_dispatcher.test_dispatcher.TestDispatcher::test_feed_raw_update"
2019-12-09 21:39:06 +02:00
Alex Root Junior
e37395b161
Maximum coverage
2019-11-28 23:52:02 +02:00
Alex Root Junior
6fadb8feb2
Add Dispatcher.feed_raw_update for processing raw updates
2019-11-28 23:48:33 +02:00
Alex Root Junior
c674b5547b
Add token validation util, fix deepcopy of sessions and make bot hashable and comparable
2019-11-28 23:12:44 +02:00
jrootjunior
c23ee36ece
Reformat code
2019-11-26 11:41:49 +02:00
jrootjunior
55496ab9ca
Partially cover dispatcher
2019-11-26 11:41:23 +02:00