Commit graph

1068 commits

Author SHA1 Message Date
Alex Root Junior
fa9912aef7 Fix tests 2021-01-24 22:05:26 +02:00
Alex Root Junior
04ce94183c Fix typehints and add more emoji 2021-01-24 21:51:25 +02:00
Alex Root Junior
281dda52de Fix emoji 2021-01-24 21:10:50 +02:00
Alex Root Junior
915c84c742 Update API 2021-01-24 20:54:38 +02:00
Alex Root Junior
5aeab63384 Update API methods docstrings. Added markup. 2021-01-24 01:31:05 +02:00
Alex Root Junior
18854185b2 Fix night-mode stylesheet. Small changes in docs. 2021-01-24 00:15:25 +02:00
Alex Root Junior
84eefd1dc4 Fix Sphinx dependencies 2021-01-12 23:02:03 +02:00
Alex Root Junior
47bdad4098 Reformat code 2020-11-18 17:16:41 +02:00
Alex Root Junior
d3b488e16d Refactor dispatcher. Update docs. Fix tests. 2020-11-18 02:05:52 +02:00
Alex Root Junior
9539c4e2fd Merge branch 'dev-3.x-sphinx' into dev-3.x-api-5.0
# Conflicts:
#	aiogram/client/bot.py
#	poetry.lock
#	pyproject.toml
2020-11-16 23:35:05 +02:00
Alex Root Junior
293337735d Update project structure 2020-11-16 23:32:37 +02:00
Alex Root Junior
2495836469 Regen code (Bot API 5.0) 2020-11-16 04:11:13 +02:00
Alex Root Junior
a339514fb9 Initial update. Update types and methods 2020-11-16 03:59:35 +02:00
sabbyX
7ba153c7b1
HandlerObject: Unwrap handler before awaitable check (#435)
* Unwrap handler before awaitable check

* Remove unused 'type:ignore' comment

* Add wrapped handler tests
2020-10-04 18:26:34 +03:00
Alex Root Junior
7245811c3c Add docs for Dispatcher 2020-06-27 19:46:01 +03:00
Alex Root Junior
8ebbfb1388 Merge branch 'dev-3.x' into dev-3.x-sphinx 2020-06-27 17:29:34 +03:00
Alex Root Junior
6f53f15577 Reformat code 2020-06-27 16:59:52 +03:00
Alex Root Junior
46d01a6ae7 Fix explanation_parse_mode validation 2020-06-27 16:59:21 +03:00
Alex Root Junior
360fdfc4d8 Fix parse_mode in Message aliases 2020-06-15 23:54:06 +03:00
Alex Root Junior
b1cc68aa3b Add extra requirements 2020-06-15 02:40:24 +03:00
Alex Root Junior
f68960ca87 Add sphinx with converting part of pages 2020-06-15 02:22:24 +03:00
Alex Root Junior
3aa68a93d1 Fix coverage 2020-06-14 18:21:54 +03:00
Alex Root Junior
f5684aef07 Update default parse_mode propagation. 2020-06-14 18:18:29 +03:00
Alex Root Junior
4d631a3069 Allow to use zero as request timeout 2020-06-14 17:36:14 +03:00
Alex Root Junior
7844a663a9 Bump Telegram Bot API version
Change request timeout mechanism
Bump package version
2020-06-14 17:14:10 +03:00
Alex Root Junior
b78f1cdb17 Merge branch 'dev-3.x-unset_parse_mode' of https://github.com/b0g3r/aiogram into b0g3r-dev-3.x-unset_parse_mode
# Conflicts:
#	aiogram/api/methods/base.py
#	aiogram/api/methods/edit_message_caption.py
#	aiogram/api/methods/edit_message_text.py
#	aiogram/api/methods/send_animation.py
#	aiogram/api/methods/send_audio.py
#	aiogram/api/methods/send_document.py
#	aiogram/api/methods/send_message.py
#	aiogram/api/methods/send_photo.py
#	aiogram/api/methods/send_video.py
#	aiogram/api/methods/send_voice.py
#	aiogram/api/types/__init__.py
#	aiogram/api/types/inline_query_result_audio.py
#	aiogram/api/types/inline_query_result_cached_audio.py
#	aiogram/api/types/inline_query_result_cached_document.py
#	aiogram/api/types/inline_query_result_cached_gif.py
#	aiogram/api/types/inline_query_result_cached_mpeg4_gif.py
#	aiogram/api/types/inline_query_result_cached_photo.py
#	aiogram/api/types/inline_query_result_cached_video.py
#	aiogram/api/types/inline_query_result_cached_voice.py
#	aiogram/api/types/inline_query_result_document.py
#	aiogram/api/types/inline_query_result_gif.py
#	aiogram/api/types/inline_query_result_mpeg4_gif.py
#	aiogram/api/types/inline_query_result_photo.py
#	aiogram/api/types/inline_query_result_video.py
#	aiogram/api/types/inline_query_result_voice.py
#	aiogram/api/types/input_media_animation.py
#	aiogram/api/types/input_media_audio.py
#	aiogram/api/types/input_media_document.py
#	aiogram/api/types/input_media_photo.py
#	aiogram/api/types/input_media_video.py
#	aiogram/api/types/input_text_message_content.py
2020-06-14 16:27:39 +03:00
Martin Winks
aed3642385
feat(helpers): implement new descriptor with default value getter (#336)
* feat(helpers): implement new descriptor with default value getter

* perf(descriptor): use weakref

refuse weak reference to a value in WeakRefDict instead of polluting instance namespace

* chore(descriptor): rename descriptor class

rename `DefaultProperty` to `Default`

* style(fmt): lint code
2020-05-31 18:01:28 +03:00
lyteloli
9f11afda5b
Added fields to ChatMember (#340)
* Added fields to ChatMember
* Added ChatMemberStatus helper
2020-05-29 22:28:12 +03:00
Gabben
de3c5c1a8d
Download feature and URLInputFile (#332)
* Fix How to upload docs

* Rename BaseBot to Bot

* Add download_file method

* Add download method

* Add URLInputFile

* Add Downloadable to __init__ and __all__

* Fix ImportError for Python 3.7

* Related pages

* Improving docs

* Some speed

* staticmethod to classmethod
2020-05-27 01:25:13 +03:00
Alex Root Junior
28382ebf5f
Add bump_versions.py script (#338)
* Add bump_versions.py script
* Fix pipeline
2020-05-27 01:24:06 +03:00
Alex Root Junior
b69bd74d0c Rename update_processing_context.py to user_context.py 2020-05-26 22:00:51 +03:00
Alex Root Junior
bafc2ff341 Update middlewares docs 2020-05-26 20:26:29 +03:00
Alex Root Junior
7f26ec9935 Implement new middlewares 2020-05-26 00:23:35 +03:00
Gabben
83730276bc Add ShippingQuery.answer 2020-05-17 16:50:49 +05:00
Gabben
cf12da0c4a Add PreCheckoutQuery.answer 2020-05-17 16:40:26 +05:00
Gabben
65002b9280 Add InlineQuery.answer 2020-05-17 16:24:42 +05:00
Gabben
6bba2da814 Add CallbackQuery.answer 2020-05-17 15:42:04 +05:00
mpa
9bd981726f Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x-deprecate-handlers 2020-05-10 03:12:42 +04: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
05dd42712d
Merge pull request #318 from aiogram/dev-3.x-refactor-sessions
Dev 3.x refactor sessions
2020-05-09 23:49:54 +03:00
mpa
0aa8069dc4 fix(sessions):
make timeout deleter more clever in particular cases
2020-05-06 03:05:43 +04:00
mpa
df4ba87dfc feat(timeout):
implement (class-bound, instance-bound, request-bound) session timeout
for requests. fix docs config, fix aiohttp session docs links.
2020-05-06 02:42:54 +04:00
Alex Root Junior
b097680f3c Fix package 2020-05-06 01:42:40 +03:00
mpa
2adc19724d refactor(props):
simplify some descriptors with tests for them, remove silly "nocovers"
2020-05-06 00:04:50 +04:00
mpa
ea6a02bf97 refactor(sessions):
remove BaseSession's initializer, add timeout ommitable field to base
method model
2020-05-03 00:53:25 +04:00
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
e9fef19129 Fix compatibility with pydantic 1.5 (temporary) 2020-04-28 12:07:01 +03:00