Commit graph

1918 commits

Author SHA1 Message Date
Danipulok
8b0ca520f3
Add missing Message methods (#1030)
* Add `Message.forward` method

* Add docs

* Add other methods

* Fix

* Add changes

* Fix lints

* Update CHANGES/1030.feature.rst

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

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2022-10-22 00:29:29 +03:00
Danipulok
f4d3dbf3bf
Fix typehints for Message media group methods (#1029)
* Fix typehints for `Message` media group methods

* Create 1029.doc.rst

* Fix importes
2022-10-21 22:23:58 +03:00
Daria
dea1623435
UA translation of FSM & Middlewares docs (#1035) 2022-10-21 22:21:46 +03:00
Daria
9c4f60fb1b
UA translation of Observer docs (#1034) 2022-10-19 23:19:40 +03:00
Alex Root Junior
01028f10eb
Small fix in translated pages 2022-10-18 02:12:24 +03:00
dimaluts
6e31f93951
Translate flags docs page to uk_UA (#1025)
* Translate flags docs page to uk_UA
2022-10-15 01:06:35 +03:00
Alex Root Junior
41c802010d
Small fix in translated pages 2022-10-15 00:46:53 +03:00
Alex Root Junior
048172bcc2
Translate utils docs // uk_UA // TY @MelissaLemon 2022-10-14 19:46:19 +03:00
Daniil
7a618b41f9
Update router.rst (#1023)
Fix typo error in docs
2022-10-11 20:04:28 +03:00
Alex Root Junior
2429e4a1ac
Fixed keyboard builder button typehint 2022-10-10 13:30:06 +03:00
Alex Root Junior
b0f251a8b8
Combining filters (again) (#1018)
* Added explicit logic filters, added slots to all other filters

* Update translation files

* Update docs
2022-10-03 01:23:22 +03:00
Andrew
1a3e2a8991
Fix UA translations in index.po (#1017)
* Fix ua translations in index.po
Пофікшені і додані деякі переклади

* ADD Changelog
2022-10-03 01:05:55 +03:00
Alex Root Junior
9041cc72f1
Fixed readme :ref: tag 2022-10-02 19:42:33 +03:00
Alex Root Junior
49372d14fd
Forget about virtualenv in pipeline 2022-10-02 19:38:26 +03:00
Alex Root Junior
1fa7fae6b3
Fixed deployment pipeline (Python version) 2022-10-02 19:33:17 +03:00
Alex Root Junior
f90c955b15
Generate changelog 2022-10-02 19:30:46 +03:00
Alex Root Junior
efae83d337
Added more details when server send invalid response 2022-10-02 19:22:12 +03:00
Alex Root Junior
44ae565149
Change changelog categories, update dependencies 2022-10-02 18:24:26 +03:00
Alex Root Junior
d824155a66
Added links to docs 2022-10-02 00:49:27 +03:00
Alex Root Junior
32a6589daf
Downgrade Python for docs 2022-10-02 00:33:24 +03:00
Alex Root Junior
d988d3e0f2
Maybe this? 2022-10-02 00:31:27 +03:00
Alex Root Junior
a07e23804a
Update RTD build 2022-10-02 00:28:50 +03:00
Alex Root Junior
5a9ea04efc
Fixed escaping markdown in aiogram.utils.markdown module 2022-10-02 00:09:28 +03:00
Alex Root Junior
f4251382e8
Remove filters factory, introduce docs translation (#978)
* Rewrite filters

* Update README.rst

* Fixed tests

* Small optimization of the Text filter (TY to @bomzheg)

* Remove dataclass slots argument in due to the only Python 3.10 has an slots argument

* Fixed mypy

* Update tests

* Disable Python 3.11

* Fixed #1013: Empty mention should be None instead of empty string.

* Added #990 to the changelog

* Added #942 to the changelog

* Fixed coverage

* Update poetry and dependencies

* Fixed mypy

* Remove deprecated code

* Added more tests, update pyproject.toml

* Partial update docs

* Added initial Docs translation files

* Added more changes

* Added log message when connection is established in polling process

* Fixed action

* Disable lint for PyPy

* Added changelog for docs translation
2022-10-02 00:04:31 +03:00
Oleg A
94030903ec
Fix chat type example (#999) 2022-09-18 17:08:45 +03:00
Oleg A
a08c2e750c
Add representation for aiogram exception (#989)
* feat: add repr for aiogram exception

#988

* docs: add changelog

#988

* tests: add representation coverage

#988

* fix: correct test result type

#988
2022-09-11 23:16:47 +03:00
Alex Root Junior
0b5f4d62c7
Prevent to crash polling (#995)
* Prevent to crash polling

* Added changelog
2022-08-30 01:46:19 +03:00
Evgen Fil
40c29a0494
PyPy support (#985)
* Run tests on PyPy (#984)

Remove unnecessary `jobs.build.strategy.max_parallel` attribute

* Workaround `symlink() is not implemented for PyPy on Windows`

* Quote conditions in tests workflow file

* Fix quoting in Poetry installation script

* Adjust timeout when testing on pypy

Running the tests with coverage pytest plugin makes some tests run slower than expected

* Try to fix uvloop build errors on macos-latest

* Try to fix uvloop build errors on macos-latest (2)

* Adjust timeout when testing on pypy (2)

* Increase timeout even more

* Try to fix uvloop build errors on macos-latest (3)

* Update tests.yml, revert changes in test files

Add and improve step names
Merge "Lint code" and "Check code-style" steps
Don't install uvloop on macos when running on pypy
Don't run tests with coverage on pypy
Remove test timeout adjustments

* Fix condition

* Update README, add changelog

* Put environment info (`IS_PYPY`, `IS_WINDOWS`) into environment variables

* Fix conditions
2022-08-30 01:23:43 +03:00
Alex Root Junior
e7cee430b2
Update README.rst 2022-08-24 00:44:17 +03:00
Daniil
a812a40fd5
Update dispatcher.py (#987) 2022-08-24 00:38:03 +03:00
Alex Root Junior
3f57c69d4f
Fixed changelog // 2 2022-08-14 19:54:28 +03:00
Alex Root Junior
35533c57f1
Whitespace in changelog 2022-08-14 19:17:09 +03:00
Alex Root Junior
1b9e666557
Update docs 2022-08-14 18:54:43 +03:00
Alex Root Junior
0e0dbe7e59
Deprecate filters factory (#976)
* Deprecate filters factory

* Added changelog

* Update filters usage in docs and examples
2022-08-14 18:40:41 +03:00
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
Daniil Kovalenko
5e7932ca20
Fix default lock kwargs in RedisEventIsolation (#972)
* Fix default lock kwargs in RedisEventIsolation

* Add changelog
2022-08-09 19:48:37 +03:00
ShiroNoHaga
851f7a2a37
Add class helper ChatAction (#803)
* Add class helper ChatAction

* Change using helper to using enum.Enum

* Add test for class ChatAction

* Use black formatting

* Add pull request description to CHANGES

* Add test coverage

* Use AutoName class for enum values

* Move `AutoName` to separate file

* Move inheritance from `str`

* Fix failing mypy

* Delete old actions

Co-authored-by: Evgen Fil <evgfilim1@yandex.ru>
2022-07-09 23:47:11 +03:00
darksidecat
bc5b26de5f
Add __eq__ and __hash__ methods to State class (#928)
* Fix the ability to copy the state, now copying the state will return the same state.

* reformat

* full implement deepcopy with memo dict, add typehints

* Update aiogram/dispatcher/fsm/state.py

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

* update tests

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

* remove deepcopy in tests

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

* remove deepcopy method

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

* update changes description

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

* update __eq__  method

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

* add typehints, tests

* return False for not equal objects
creating FilterObject use getfullargspec that check State equality with `type` and `object` builtins, raising Error in `__eq__` method of State break this behavior

* return NotImplemented for other types

* use `!=` instead of 'not x == y' in tests

Co-authored-by: Oleg A. <t0rr@mail.ru>
2022-07-08 02:26:49 +03:00
Evgen Fil
416460e013
Skip running tests when there are no code or test changes (#948)
* Skip running tests when there are no code or test changes

* Allow config file changes to trigger tests
2022-06-26 19:16:17 +03:00
Evgen Fil
2cb0fd1c4b
Improve changelog check action (#949)
Make check faster when `skip news` label is present
Add `name:` root field
2022-06-26 16:22:32 +03:00
Oleg A
70088cdd65
Add full_name shortcut for Chat (#929)
Added full_name for Chat
2022-06-26 01:50:27 +03:00
Alex Root Junior
b8893c0971
#944 Rename "extract()" to "extract_from()" for entities (#945)
* #944 Rename "extract()" to "extract_from()" for entities
2022-06-26 01:36:45 +03:00
Alex Root Junior
fadb11515e
Remove deprecated methods (#943)
* #941 Removed deprecated methods
2022-06-25 22:47:08 +03:00
Evgen Fil
2c6d8ed5cb
Automatically put 3.x label on new pull requests to dev-3.x (#940) 2022-06-25 22:31:19 +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
Andrew
adfc89f125
Fix type hints for redis TTL params (#922)
* Allow to use `int` and `datetime.timedelta`

* Fix imports

* Added changelog

* Update CHANGES
2022-06-16 21:43:32 +03:00
Kostiantyn Kriuchkov
b3b320c106
Small typo fix (#920)
* Small typo fix

Changed CommandPatterType to CommandPatternType
Supposedly, the implied word is patterN

* Added to CHANGELOG
2022-06-10 11:48:19 +03:00
Alex Root Junior
824b43c436
#901 Fixed false-positive coercing of Union types in API methods (#912)
* #901 Fixed false-positive coercing of Union types in API methods

* Added default value for force_reply
2022-05-14 17:27:36 +03:00
Aleksandr
6ad242399b
#905 Added 3 missing content types (#906)
* Added 3 missing content types

* Added tests for 3 missing content types

* More tests

* Added changelog
2022-05-13 23:52:13 +03:00