Commit graph

1522 commits

Author SHA1 Message Date
Alex Root Junior
01c6303d67 Add extensions for class-based error handler 2020-04-12 23:29:10 +03:00
Alex Root Junior
0fbd2819f9 Add filters and class based handler for errors 2020-04-12 23:20:44 +03:00
Alex Root Junior
9e673998f0 Errors handler 2020-04-12 22:13:25 +03:00
Alex Root Junior
569a9c807c adwanced 2020-04-12 20:41:10 +03:00
Alex Root Junior
5b6ec599b1 Add middlewares (API + Docs + Tests) 2020-04-12 20:27:32 +03:00
Dima Boger
023245c76b Add sentinel value for parse_mode which can be None itself
Resolves #302. We decided to use sentinel pattern (https://python-patterns.guide/python/sentinel-object/) as a solution, but got a few problems with plain `object()`, so instead we use unittest.mock.sentinel and we hope it won't cause side effects.

Most of work done via tg-codegen (https://github.com/aiogram/tg-codegen/pull/1), so it's good to review only implementation of sentinel, processing sentinel in `prepare_parse_mode`, changes in base method model and little test fixes.
2020-04-12 19:37:01 +03:00
Alex Root Junior
e4cd4c1763 Add message reply&answer methods for dice 2020-04-11 23:06:41 +03:00
Alex Root Junior
82f89b9c1d Optimize events propagation by routers 2020-04-11 22:59:37 +03:00
Alex Root Junior
7449c89b04 Add py.typed 2020-04-11 22:01:53 +03:00
Alex Root Junior
9f00a02e4d "noqa: F811" in aiogram/utils/mixins.py 2020-04-11 20:58:57 +03:00
Alex Root Junior
33003f2026 Add support of Bot API 4.7. Bump version 2020-04-11 20:15:03 +03:00
Alex Root Junior
4cb9697cb4
Merge pull request #283 from b0g3r/dev-3.x-strict-mypy
🏷️ Turn on mypy's strict mode
2020-03-29 15:08:57 +03:00
Boger
880e935700 Return old hack, because new break mypy plugins :face_with_rolling_eyes: 2020-03-28 19:43:35 +03:00
Boger
4298406bd2 Add check for owner class in Item 2020-03-28 18:47:42 +03:00
Boger
45cfa5b3c9 Fix coverage with no cover for unreachable code 2020-03-25 16:28:24 +03:00
Boger
756412d784 Turn off mypy on tests folder 2020-03-25 16:19:48 +03:00
Boger
23c632b37b Fix style errors 2020-03-25 15:57:25 +03:00
Boger
7db1572fd3 Return DataMixin 2020-03-25 15:49:43 +03:00
Boger
a823e275a7 Merge BaseBot to Bot class 2020-03-25 15:36:19 +03:00
Boger
fac69e52b7 💩 First iteration 2020-03-18 18:15:49 +03: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
a41bccddf9 Merge remote-tracking branch 'origin/dev-3.x-download' into dev-3.x 2020-02-02 22:53:55 +02:00
Alex Root Junior
7053a9ad4e Bump lockfile 2020-02-02 22:50:30 +02:00
Alex Root Junior
3bac0f137b Re-generate methods/types 2020-02-02 16:11:30 +02:00
jrootjunior
5daf3b2162 Move TODO to external page in docs 2020-01-30 18:02:23 +02:00
jrootjunior
fcb8a414e9 Fix style of types/methods list 2020-01-30 17:03:03 +02:00
jrootjunior
da0b9a4203 Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x 2020-01-28 14:03:36 +02:00
jrootjunior
795912bff6 improve docs 2020-01-28 14:03:29 +02:00
Alex Root Junior
350a670bdf Add handler for poll answer 2020-01-27 23:55:45 +02:00
Alex Root Junior
0a1909f0f4 Supports language in message entity pre 2020-01-27 23:48:33 +02:00
Alex Root Junior
eeb3b63b97 Make some objects mutable 2020-01-26 21:09:47 +02:00
Alex Root Junior
c4961fd114 Update TelegramObject config 2020-01-26 20:41:43 +02:00
Alex Root Junior
c7355cef23 Add docs for message aliases 2020-01-26 20:40:57 +02:00
Alex Root Junior
3e99cb7e5d Add aliases to Message object (No docs) 2020-01-26 02:34:57 +02:00
Alex Root Junior
3dd5530241 Propagate update to context in router 2020-01-26 02:34:32 +02:00
Alex Root Junior
f0f1523142 Exclude dir with development experiments 2020-01-25 19:05:58 +02:00
Alex Root Junior
5ddc53e296 Bump dependencies 2020-01-25 19:04:48 +02:00
Alex Root Junior
30f4e8397b Update docs for Router initializer 2020-01-25 18:38:13 +02:00
Alex Root Junior
d9314a9d53 Bump versions 2020-01-25 18:32:47 +02:00
Alex Root Junior
4312f62fed Merge branch 'dev-3.x-api-4.6' into dev-3.x 2020-01-25 18:26:46 +02:00
Alex Root Junior
4caa8faab8 Update tests 2020-01-25 18:26:30 +02:00
Alex Root Junior
e80ab3d3c0 Update mkdocs nav 2020-01-24 01:14:30 +02:00
Alex Root Junior
9dcc4f2d7a Update install link 2020-01-24 01:10:14 +02:00
Alex Root Junior
ae55497842 Supports Bot API 4.6 (Broken tests) 2020-01-24 01:07:22 +02:00
gabbhack
26708154b0 Implement stream_content in AiohttpSession and add tests 2020-01-22 22:55:34 +05:00
gabbhack
7ab0db7991 Add stream_content to BaseSession and add tests 2020-01-22 22:54:29 +05:00
jrootjunior
213f2a3c16 Change codecov.yaml 2020-01-22 13:29:46 +02:00
jrootjunior
3a1a666aff Add codecov config 2020-01-22 13:10:49 +02:00