Commit graph

195 commits

Author SHA1 Message Date
Alex Root Junior
c1341ba2df
Added support of Bot API 6.2 (#975)
* Added support of Bot API 6.2
* Added changelog
* Update tests
* Update API version
* Update dependencies, pre-commit config
* Added pytest config
2022-08-14 16:32:29 +03:00
Alex Root Junior
4315ecf1a2
Dev 3.x flat package (#961)
* Move packages

* Added changelog

* Update examples/echo_bot.py

Co-authored-by: Oleg A. <t0rr@mail.ru>

* Rename `handler` -> `handlers`

* Update __init__.py

Co-authored-by: Oleg A. <t0rr@mail.ru>
2022-08-14 01:07:52 +03:00
Alex Root Junior
247ffbef69
3.x Bot API 6.1 (#937)
Added support of Bot API 6.1
2022-06-25 18:14:29 +03:00
Alex Root Junior
7bfc941a1e
Fixed typy in WebApp docs page 2022-04-19 22:26:43 +03:00
Alex Root Junior
497436595d
[3.x] Bot API 6.0 (#890)
* Base implementation

* Bump license

* Revert re-generated tests

* Fix tests, improved docs

* Remove TODO

* Removed unreachable code

* Changed type of `last_synchronization_error_date`

* Fixed wrongly cleaned code
2022-04-19 22:03:24 +03:00
Alex Root Junior
286cf39c8a
Beta 3 (#884)
* Rework middlewares, separate management to `MiddlewareManager` class

* Rework middlewares

* Added changes description for redis

* Added changes description for redis

* Fixed tests with Redis // aioredis replacement

* Changed msg.<html/md>_text attributes behaviour

* Added changelog for spoilers

* Added possibility to get command magic result as handler arguments
2022-04-16 19:07:32 +03:00
Michael
930bca0876
Fixed path of I18n Class (#879)
The I18n Class gets imported in 3.0.0b2 as follows:
from aiogram.utils.i18n import I18n

Whereas the documentation implies that it should be:
from aiogram.utils.i18n.code import I18n
2022-04-11 04:08:27 +03:00
layerqa
370cd27471
Dispathcer to Dispatcher on docs (#881) 2022-04-11 03:34:24 +03:00
Alexey
baf31a531a
Update aiohttp.rst (#872)
fix import
2022-03-26 17:55:08 +02:00
Gabben
a37bbba38c
Fix docs and examples (#864)
* Update magic_data Allowed handlers

* Fix ChatMemberUpdated example

* Fix examples with `.in_(...)` and delete with `@`

* Fix commands in examples

* Change List to Set
2022-03-26 17:30:46 +02:00
Gabben
79588b7c5d
Fix I18nMiddleware class (#859) 2022-03-05 02:33:45 +02:00
Alex Root Junior
7776cf9cf6
Bot API 5.7 and some new features (#834)
* Update API, added some new features

* Fixed unknown chat_action value

* Separate events from dispatcher messages

* Disabled cache for I18n LazyProxy

* Rework events isolation

* Added chat member status changed filter, update Bot API 5.7, other small changes

* Improve exceptions in chat member status filter

* Fixed tests, covered flags and events isolation modules

* Try to fix flake8 unused type ignore

* Fixed linter error

* Cover chat member updated filter

* Cover chat action sender

* Added docs for chat action util

* Try to fix tests for python <= 3.9

* Fixed headers

* Added docs for flags functionality

* Added docs for chat_member_updated filter

* Added change notes

* Update dependencies and fix mypy checks

* Bump version
2022-02-19 01:45:59 +02:00
Gabben
c705858421
Update index.rst (#808) 2022-01-26 23:26:07 +02:00
ksivaa
6567fefc4b
Correct grammar errors (#811)
* Correct grammar errors

* Return punctuation and line break to the original

* Update docs/dispatcher/router.rst

Co-authored-by: Evgen Fil <evgfilim1@yandex.ru>

Co-authored-by: Evgen Fil <evgfilim1@yandex.ru>
2022-01-26 20:30:27 +02:00
Alex Root Junior
1634dc1162 Bump version, small changes in docs 2021-12-12 18:59:57 +02:00
Alex Root Junior
9ec689b562
[3.x] Bot API 5.5 (#777)
* Re-generate API, cover changes

* Added patchnotes
2021-12-12 17:21:01 +02:00
Gabben
92ec44d8d2
Typo fix (#774) 2021-12-11 01:00:42 +02:00
Koala Ilya
24a805d517
spelling error fixed (#749) 2021-12-01 02:43:57 +02:00
Alex Root Junior
d7be55bc58
Extended MagicFilter with aiogram-specific operation (#759)
* Extend MagicFilter with aiogram-specific operation

* Added tests

* Added changes annotation and update docs
2021-11-24 06:00:37 +02:00
Alex Root Junior
9b43a33b7f
Dev 3.x api 5.4 (#744)
* Re-generate API

* Added new modules

* Added handling new event type and approve/decline aliases for ChatJoinRequest

* Fixed code-coverage

* Bump API version

* Added patch-notes
2021-11-08 02:37:37 +02:00
darksidecat
42cba8976f
Bound filters resolving rework, filters with default argument (#727)
* bound filters resolving rework, filters with default argument

* bound filters resolving rework, filters with default argument

* Update 727.misc

* clarification of the comment about skipping filter

* fix data transfer from parent to included routers filters

* fix checking containing value in generator

* Update docs/dispatcher/filters/index.rst

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

* Update 727.misc

* reformat

* better iterable types

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2021-10-12 22:29:57 +03:00
Alex Root Junior
f97367b3ee More docs 2021-10-12 01:11:53 +03:00
Alex Root Junior
c3cdd75ede Update README and docs main page 2021-10-11 01:29:06 +03:00
Alex Root Junior
e4046095d7
Dev 3.x i18n & improvements (#696)
* Added base code and make code improvements
* Auto-exclude coverage for `if TYPE_CHECKING:`
* Fixed current coverage
* Cover I18n module
* Update pipeline
* Fixed annotations
* Added docs
* Move exceptions
* Added tests for KeyboardBuilder and initial docs
* Remove help generator (removed from sources tree, requires rewrite)
* Added patch-notes #698, #699, #700, #701, #702, #703
2021-09-22 00:52:38 +03:00
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
18a93aab60
Disabled ContentTypesFilter by default (#668)
* Disabled ContentTypesFilter by default

* Rename file

* Update docs
2021-08-20 02:39:03 +03:00
evgfilim1
18b268f0b6
Update installation instructions (#655)
* Update installation instructions

* Small fix for 2.x branch & make instructions brief

* Style fix
2021-08-03 02:06:52 +03:00
Alex Root Junior
9114abe919
towncrier integration (#647)
* Added towncrier and clone changelog from GitHub Releases page

* Added record to changelog

* Extended makefile

* Fix typo

* Changed ref in changelog

* Auto-confirm towncrier question on build

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-08-01 19:08:03 +03:00
Alex Root Junior
e5a7c69e17 Bump version 2021-08-01 01:09: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
eee6589a2c Change Python version in docs index 2021-06-19 02:56:04 +03:00
Alex Root Junior
9451a085d1 Added codecov badge 2021-05-13 22:23:49 +03:00
Alex Root Junior
e1cd7268a1 Remove MkDocs 2021-05-13 00:13:09 +03:00
Alex Root Junior
5abd9ad0c4 Bump version. Added pipeline for test PyPi 2021-05-12 00:13:03 +03:00
Alex Root Junior
0e72d8e65b
[3.0] Bot API 5.1 + FSM + Utils (#525)
* Regenerate corresponding to Bot API 5.1

* Added base of FSM. Markup constructor and small refactoring

* Fix dependencies

* Fix mypy windows error

* Move StatesGroup.get_root() from meta to class

* Fixed chat and user constraints

* Update pipeline

* Remove docs pipeline

* Added GLOBAL_USER FSM strategy

* Reformat code

* Fixed Dispatcher._process_update

* Bump Bot API 5.2. Added integration with MagicFilter

* Coverage
2021-05-11 23:04:32 +03:00
Alex Root Junior
aebccd1139 Fix version parsing 2021-02-07 19:04:26 +02: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
Alex Root Junior
7844a663a9 Bump Telegram Bot API version
Change request timeout mechanism
Bump package version
2020-06-14 17:14:10 +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
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
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
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