Commit graph

28 commits

Author SHA1 Message Date
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
Alex Root Junior
46d01a6ae7 Fix explanation_parse_mode validation 2020-06-27 16:59:21 +03:00
Alex Root Junior
f5684aef07 Update default parse_mode propagation. 2020-06-14 18:18:29 +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
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
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
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
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
33003f2026 Add support of Bot API 4.7. Bump version 2020-04-11 20:15:03 +03:00
Boger
fac69e52b7 💩 First iteration 2020-03-18 18:15:49 +03:00
Alex Root Junior
3f5c51e805 Add webhook feed method to Dispatcher 2020-02-22 00:59:10 +02:00
Alex Root Junior
3b2df194a9 Reformat code and docs 2020-01-11 22:59:14 +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
df6a861276 Fix default parse mode 2019-12-26 01:00:04 +02:00
jrootjunior
aa7c5796dd Add default parse mode 2019-12-03 13:10:09 +02:00
Alex Root Junior
0acdb24c3c No cover if TYPE_CHECKING 2019-11-23 17:03:14 +02:00
Alex Root Junior
23abe35212 Update tests for all methods 2019-11-19 22:44:12 +02:00
Alex Root Junior
2d6a9e4ff7 Fix validation error for empty files in request 2019-11-19 00:05:45 +02:00
jrootjunior
ef956f7ec2 Add API methods testing prototype 2019-11-18 17:44:07 +02:00
jrootjunior
65815e509f Clean obsolete code and change configs 2019-11-15 12:44:24 +02:00
Alex Root Junior
a83dd3ca63 Fix EditMessageMedia 2019-11-14 22:38:00 +02:00
jrootjunior
5d1c54aa17 Allow to send thumbs 2019-11-14 12:24:27 +02:00
Alex Root Junior
5797ab6c99 Allow to send files 2019-11-14 02:05:08 +02:00
Alex Root Junior
9d980c4b61 Update methods. Add generated files configurator 2019-11-14 00:44:09 +02:00
Alex Root Junior
278999761c Add new autogenerated methods and types and add prototype of sessions. 2019-11-03 22:14:41 +02:00