Commit graph

610 commits

Author SHA1 Message Date
Arslan 'Ars2014' Sakhapov
f321c69f46 Add RethinkDB-based storage for FSM 2018-01-10 14:33:27 +05:00
Alex Root Junior
1decd0c2ec
Merge pull request #1 from Ars2014/master
Fix error replacing 'to_json' by 'to_python'
2018-01-09 20:48:06 +02:00
Arslan 'Ars2014' Sakhapov
3e0d7e1ef5 Fix error replacing 'to_json' by 'to_python' 2018-01-09 23:10:22 +05:00
Alex Root Junior
e881064f6c Merge branch 'dev-1.x'
# Conflicts:
#	aiogram/__init__.py
2018-01-07 18:22:56 +02:00
Alex Root Junior
9de31422eb Remove log message about received update in dispatcher and fix handling errors in tasks (async_task). 2018-01-07 18:21:09 +02:00
Alex Root Junior
c5b828f809 disable wait_closed dispatcher on executor. 2018-01-07 18:19:44 +02:00
Alex Root Junior
a812553ddb Add logging middleware. 2018-01-07 18:17:37 +02:00
Alex Root Junior
30866e5a9a Typo version in docstring. 2018-01-06 14:37:10 +02:00
Alex Root Junior
16a61b092f More graceful stopping of long polling. 2018-01-06 14:31:59 +02:00
Alex Root Junior
62d5dda84d Change error message for missing keys in the context. 2017-12-22 05:35:31 +02:00
Alex Root Junior
c567b77a00 Add example for Middleware and throttling manager. 2017-12-22 05:21:44 +02:00
Alex Root Junior
9bb9177e28 Change handler context key 2017-12-22 05:21:16 +02:00
Alex Root Junior
59cecdbd6a Fix callback query handler for callbacks without 'message' property. 2017-12-20 22:57:26 +02:00
Alex Root Junior
a1aefb9ea6 Get info from FSM bucket. 2017-12-10 04:39:21 +02:00
Alex Root Junior
629dd400eb Remove auto retry requests on RetryAfter error. 2017-12-10 04:00:46 +02:00
Alex Root Junior
f529f588da Add handler into context. 2017-12-10 03:40:35 +02:00
Alex Root Junior
154c12a165 Make an context is task-local. 2017-12-10 03:40:09 +02:00
Alex Root Junior
115f1fe032 Add docstrings in middlewares module. 2017-12-10 02:47:36 +02:00
Alex Root Junior
0295aed615 Relative imports and reformat code (auto) 2017-12-10 02:40:59 +02:00
Alex Root Junior
6a64573e44 The middlewares is back in the new interpretation + Small refactoring. 2017-12-10 02:36:16 +02:00
Alex Root Junior
4ee54ea4e6 Wut? Class with item assignments for context. 2017-12-03 00:48:01 +02:00
Alex Root Junior
ed6ae575d1 Add example for throttling manager (anti-flood) 2017-12-02 22:57:35 +02:00
Alex Root Junior
683afc714e Implemented new RedisStorage2. More faster and with different data structure. 2017-12-02 22:42:05 +02:00
Alex Root Junior
250a636d6e Automatic enable uvloop if available. 2017-12-02 15:19:23 +02:00
Alex Root Junior
435b498d25 Update memory storage (FSM) for usage with throttling manager. 2017-12-02 01:06:23 +02:00
Alex Root Junior
2ebd7c5de4 Move Throttling manager to Dispatcher. 2017-12-02 01:03:56 +02:00
Alex Root Junior
c75e33eaa3 Upd dev dependencies. 2017-12-02 01:03:24 +02:00
Alex Root Junior
31fd69fbcf Update Makefile 2017-12-01 02:54:21 +02:00
Alex Root Junior
e8375f115e Add examples to summary information. 2017-12-01 02:38:03 +02:00
Alex Root Junior
997d5b4181 Move tests of types to test/types/ directory. 2017-12-01 02:36:12 +02:00
Alex Root Junior
b178f3ad0d Small changes in Makefile 2017-12-01 02:28:25 +02:00
Alex Root Junior
114e276f7a Add summary(cloc) util to Makefile 2017-12-01 02:14:49 +02:00
Alex Root Junior
4023ee2954 Add test_chat.test_chat_actions 2017-12-01 02:11:05 +02:00
Alex Root Junior
ed1e80c76c Add test_update 2017-12-01 02:08:38 +02:00
Alex Root Junior
f5a2d19e79 Test bot. // TODO 2017-12-01 02:01:35 +02:00
Alex Root Junior
c2833c07e9 Add tox-testing to Makefile 2017-12-01 01:59:15 +02:00
Alex Root Junior
02596057a0 Add tests for: message, chat, user, game, animation, document, photo 2017-12-01 01:54:42 +02:00
Alex Root Junior
917c808b3d Update RedisStorage. 2017-11-30 01:54:26 +02:00
Alex Root Junior
f274bf4f33 Change BaseStorage for throttling manager. 2017-11-30 01:54:13 +02:00
Alex Root Junior
e75914f9bc Implement throttling manager. 2017-11-30 01:53:44 +02:00
Alex Root Junior
ae86ed191b Start using tox (Now without tests) 2017-11-29 14:57:07 +02:00
Alex Root Junior
3903fbd626 Comments in dispatcher.filters 2017-11-29 14:09:07 +02:00
Alex Root Junior
bbacfb6a50 Increment version. 2017-11-29 14:04:24 +02:00
Alex Root Junior
e5ec44def2 Change version. 2017-11-29 13:51:48 +02:00
Alex Root Junior
fab0aedffa Oops. 2017-11-29 13:50:50 +02:00
Alex Root Junior
e932c6f968 Change inline_example. 2017-11-28 17:23:35 +02:00
Alex Root Junior
787ebe3e63 Set default values for not specified fields in payload. // TelegramObject 2017-11-28 17:22:46 +02:00
Alex Root Junior
21f35273b7 Fix payload generator for lists and dicts. (Add more comments in this util) 2017-11-28 17:21:37 +02:00
Alex Root Junior
ff2b7f9682 Small changes in webhook handler. 2017-11-27 17:29:20 +02:00
Alex Root Junior
68e016ecab Change dispatcher logging. 2017-11-27 17:29:04 +02:00