Commit graph

168 commits

Author SHA1 Message Date
Alex Root Junior
6be0b36305
Dev 3.x api 4.8 (#317)
* AIOG-T-20 Bot API 4.8

* AIOG-T-20 Update aliases

* AIOG-T-20 Add parse mode passing in sendPoll method

* AIOG-T-20 Small changes in docs

* AIOG-T-20 Revert overriding remove keyboard default value and add tests

* AIOG-T-20 Bot API 4.8
2020-05-02 23:01:32 +03:00
Martin Winks
15bcc0ba9f
feat(proxy): proxy for aiohttp,base sessions (#284)
* feat(proxy): proxy for aiohttp,base sessions

Add support for proxies in aiohttp session with aiohttp_socks library,
edit BaseSession class to support proxies for other sessions in future.

* fix(annotation): missing underscore before "private" typevar

* chore: remove redundant of proxy_url schema for socks version

* test: add missing test

Add missing test, remove BaseSession.cfg and switch to
implementing class' "private" traits, add aiohttp_socks in dependency list as
optional and extra.

* feat(session):

Implement asyncio session for requests [wip]

* feat(proxy chain): Chained proxy support in aiohttp session

Add ChainProxyConnector support, !pin pydantic to "1.4", add
documentation on aiohttp connector.

* style(mypy): apply linter changes

* tests(mock): remove await for magic mock

* fix dangling dependency

* refactor(generic):

get rid of generic behaviour for base session
2020-05-02 16:12:53 +03:00
Alex Root Junior
2380e14dd9 Fix phone_number and bot_command entity types generation 2020-05-02 02:43:19 +03:00
Alex Root Junior
a64359a6de Update text decorations. Fix 'mention' generator and emoji offsets. 2020-05-02 01:56:01 +03:00
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
5b6ec599b1 Add middlewares (API + Docs + Tests) 2020-04-12 20:27:32 +03:00
Alex Root Junior
82f89b9c1d Optimize events propagation by routers 2020-04-11 22:59:37 +03:00
Alex Root Junior
33003f2026 Add support of Bot API 4.7. Bump version 2020-04-11 20:15:03 +03:00
Boger
4298406bd2 Add check for owner class in Item 2020-03-28 18:47:42 +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
0a1909f0f4 Supports language in message entity pre 2020-01-27 23:48:33 +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
4caa8faab8 Update tests 2020-01-25 18:26:30 +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
cfd869b797 Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x 2020-01-22 12:38:38 +02:00
Alex Root Junior
895b727ddf More class based handlers 2020-01-21 23:33:44 +02:00
jrootjunior
e43bc5b2fe More tests for commands filter 2020-01-21 17:32:36 +02:00
Alex Root Junior
b144332287 Allow to use regular values as the same with another sequences in filters 2020-01-15 23:34:33 +02:00
Alex Root Junior
d37a7f0a0d Cleanup 2020-01-13 21:34:50 +02:00
Alex Root Junior
b61cc04e9a Remove kwargs copy in TelegramEventObserver.trigger and remove __deepcopy__ method from AiohttpSession 2020-01-13 21:30:06 +02:00
Alex Root Junior
42faee0178 Update filters typing and cover ContentTypesFilter 2020-01-13 21:17:53 +02:00
Alex Root Junior
9907eada32 Refactor EventObserver & TelegramEventObserver 2020-01-13 21:17:28 +02:00
Alex Root Junior
3b2df194a9 Reformat code and docs 2020-01-11 22:59:14 +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
d2d4f337fb Update tests 2020-01-11 19:56:38 +02:00
Alex Root Junior
dae96590c3 Update text decorations. 2019-12-31 17:56:12 +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
Alex Root Junior
1d2c6c91d0 Update and cover markdown utils 2019-12-25 23:12:08 +02:00
Alex Root Junior
81e6c98088 Refactor text decorations 2019-12-25 17:47:27 +02:00
Alex Root Junior
73af303b9c More tests for nested entities 2019-12-25 00:57:17 +02:00
Alex Root Junior
7cb22f8751 Reformat code 2019-12-25 00:39:08 +02:00
Alex Root Junior
6275bf885c Add text decorations utility. Provide nested message entities 2019-12-25 00:38:03 +02:00
Alex Root Junior
2529f6cf59 Reformat code 2019-12-15 22:01:53 +02:00
Alex Root Junior
9c2a3d1324 Move router validation to Router.parent_router 2019-12-15 22:01:13 +02:00
jrootjunior
ad17143d3f Pydoc observer 2019-12-13 12:19:39 +02:00
jrootjunior
97acf956e9 Allow to disable builtin filters for router 2019-12-13 11:08:33 +02:00