Commit graph

349 commits

Author SHA1 Message Date
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
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
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
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
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
Alex Root Junior
2fac330c81 Change version. 2017-11-25 13:44:25 +02:00
Alex Root Junior
e51810fc5e Implement sending media group via webhook-response 2017-11-25 13:43:01 +02:00
Alex Root Junior
3e6114a04a Change build stage. 2017-11-21 20:35:48 +02:00
Alex Root Junior
394ef8981b await chat actions. 2017-11-21 20:32:02 +02:00
Alex Root Junior
753396330d Implemented new one InputFile interface for sending local files. 2017-11-21 20:31:35 +02:00
Alex Root Junior
751929cb1d Change Bot API version. 2017-11-21 00:54:57 +02:00
Alex Root Junior
ef3b59c63c Typo 'pooling' -> 'polling'. 2017-11-21 00:53:53 +02:00
Alex Root Junior
233acab68e Allow to disable loading file to memory before sending. 2017-11-21 00:22:05 +02:00
Alex Root Junior
7dd44c1dfa Increment version. 2017-11-19 02:03:47 +02:00
Alex Root Junior
3c574be9d4 Fix IModuleNotFoundError: No module named 'aiohttp' and change build stage 2017-11-19 01:17:32 +02:00
Alex Root Junior
e42b551f2a Fix classifiers stage detector. 2017-11-18 20:53:23 +02:00
Alex Root Junior
81d126e377 Check response when callback is running in task. 2017-11-17 23:47:26 +02:00
Alex Root Junior
698a2dca03 MediaGroup: Detect media type from dict (in MediaGroup.attach) and other minor improvements. 2017-11-17 23:45:50 +02:00
Alex Root Junior
61e7ff9a47 Change timeout calculator in ChatActions helper. 2017-11-17 23:02:12 +02:00
Alex Root Junior
f11775fcef Implemented features from not announced Telegram Bot API update: sendMediaGroup + InputMedia* + other small changes 2017-11-17 23:01:17 +02:00
Alex Root Junior
3a5c2d78f3 Fix doc warnings. 2017-11-16 19:06:44 +02:00
Alex Root Junior
c1c3d66625 T60: More easy solution for: no wait results from handlers. 2017-11-16 18:56:44 +02:00
Alex Root Junior
ca8d3cad15 Provided customisation of allowed IPs list. // Webhook 2017-11-16 18:36:49 +02:00
Alex Root Junior
600148e6d2 Check response content type. 2017-11-16 17:56:27 +02:00
Alex Root Junior
a5766aad6f Reset webhook when need to skip updates. // executor 2017-11-16 17:56:04 +02:00
Alex Root Junior
f050d08c75 Webhook. Allow requests only from Telegram servers. // Optional 2017-11-16 15:27:15 +02:00
Alex Root Junior
6d9bdce935 Add Message.edit_text method. 2017-11-16 00:58:14 +02:00
Alex Root Junior
a2534dd6ad Make more easy helper for chat actions. 2017-11-16 00:33:38 +02:00
Alex Root Junior
8b28ba8fc4 Add more filters. 2017-11-15 23:42:14 +02:00
Alex Root Junior
e1b60dfe57 Upd disabled storage 2017-11-15 20:22:27 +02:00
Alex Root Junior
99d11430cb Executor // Get loop from dispatcher 2017-11-15 20:21:22 +02:00
Alex Root Junior
1ab9c09a5c Implemented RedisStorage.reset_all - for resetting all states in storage. 2017-11-15 19:15:12 +02:00