Commit graph

32 commits

Author SHA1 Message Date
Alex Root Junior
e356ede5de
Updated pre-commit hook (#681)
* Updated pre-commit config and reformat code

* Added changelog
2021-09-07 00:32:43 +03:00
Alex Root Junior
ac2b0bb198
[3.x] Bot API 5.3 + Improvements (#618)
* Regenerate API

* Update code

* Fixed command filter for photos

* Fix tests so they are able to run

* Test new and renamed API methods

* Reformat files

* Fix outer_middleware resolution (#637) (#640)

* Fix outer_middleware resolution (#637)

* Reformat files

* Reorder routers when resolve middlewares

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

* Added possibility to use empty callback data factory filter

* Rename KeyboardConstructor to KeyboardBuilder

* Fixed type

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-07-29 00:40:50 +03:00
Alex Root Junior
e1cd7268a1 Remove MkDocs 2021-05-13 00:13:09 +03:00
Alex Root Junior
4008a3114d
Upgrade architecture + 5.0 Bot API (#469)
Upgrade architecture + 5.0 Bot API (#469)
* Moved `methods`, `types` and `client` to root package
* Removed update handler from routers to dispatcher
* Reworked events propagation mechanism to handlers
* Reworked inner middlewares logic (very small change)
* Updated to Bot API 5.0
* Initial migration from MkDocs to Sphinx + config for readthedocs
2021-01-26 21:20:52 +02: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
Gabben
3029614dd1 Typo fix 2020-05-17 17:10:42 +05: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
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
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
e4cd4c1763 Add message reply&answer methods for dice 2020-04-11 23:06:41 +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
3bac0f137b Re-generate methods/types 2020-02-02 16:11:30 +02:00
jrootjunior
fcb8a414e9 Fix style of types/methods list 2020-01-30 17:03:03 +02:00
jrootjunior
795912bff6 improve docs 2020-01-28 14:03:29 +02:00
Alex Root Junior
c7355cef23 Add docs for message aliases 2020-01-26 20:40:57 +02:00
Alex Root Junior
d9314a9d53 Bump versions 2020-01-25 18:32:47 +02:00
Alex Root Junior
ae55497842 Supports Bot API 4.6 (Broken tests) 2020-01-24 01:07:22 +02:00
Gabben
1e7c87bd62
Fix docs 2020-01-16 17:32:26 +05:00
Alex Root Junior
3b2df194a9 Reformat code and docs 2020-01-11 22:59:14 +02:00
Alex Root Junior
ffb0cdf88f Telegram Bot API 4.5 2020-01-11 19:47:39 +02:00
jrootjunior
1cac963562 Replace types ty methods in docs/api/methods 2019-12-11 16:52:21 +02:00
jrootjunior
ea7b20e114 Small changes in api docs. 2019-12-03 13:12:39 +02:00
jrootjunior
aa7c5796dd Add default parse mode 2019-12-03 13:10:09 +02:00
jrootjunior
90b4d2eae9 Versions in docs 2019-11-20 10:07:00 +02:00
Alex Root Junior
fa6732542d Add instruction how to upload files 2019-11-20 00:10:52 +02:00
Alex Root Junior
65331e1fda Add autogenerated docs for types and methods 2019-11-16 22:32:05 +02:00