Alex Root Junior
56097d6b53
Bump dependencies
2023-02-12 01:24:18 +02:00
Alex Root Junior
f4ce4431f9
Migrate to hatchling ( #1095 )
...
* Migrate to hatchling instead of poetry, ruff instead of flake8
* Migrate to hatchling instead of poetry, ruff instead of flake8
* Update tests suite
* venv?
* -m venv?
* Change dependencies
* Remove venv
* Change mypy config
* Added changelog
* Mark uvloop incompatible with pypy
* Update release script
* Use internal caching for dependencies
* Re-disable cov branches
* Added contributing guide
2023-01-12 02:49:58 +02:00
Alex Root Junior
730485e43a
Added full support of Bot API 6.4 ( #1088 )
...
* Remove warnings about pytest asyncio mode
* Update Bot API to 6.4
* Bump version
* Added changelog
* Update translations
2022-12-30 22:44:25 +02:00
Alex Root Junior
3ea73fbbbd
Add missing shortcuts, new enums, reworked old stuff ( #1070 )
...
* Render shortcuts
* Render docs
* Added enumerations
* Added docs
* Use enums, removed Helper
* Bump butcher
* Added InputMediaType enum
* Added MaskPositionPoint, InlineQueryResultType enums
* Update texts
* Added StickerType enum
* Cover tests
* Update docs
* Fixed imports
* Re-enabled all pre-commit hooks
2022-12-04 03:05:49 +02:00
Alex Root Junior
d034c1ba9f
Adding new code-generator (Butcher) ( #1069 )
...
* Re-generate types
* Re-generate methods (only attributes)
* Added enums
* Base init generator
* Added butcher configs
* Fixed tests, bump butcher
* Added changelog
* Added enum docs
* Added templates for docs index
* Re-generate bot class, remove deprecated methods
2022-11-21 01:06:55 +02:00
Alex Root Junior
b287551590
Bot API 6.3 ( #1063 )
...
* Added API changes
* Added changelog
* Oops. Move changelog
* Update tests
* Remove experimental
* Added message content type
* Update message aliases
* Update changes
* Update texts
* Bump version
* Remove versionadded badge
2022-11-06 14:28:21 +02: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
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
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
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
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
9ec689b562
[3.x] Bot API 5.5 ( #777 )
...
* Re-generate API, cover changes
* Added patchnotes
2021-12-12 17:21:01 +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
Alex Root Junior
7405db2ad3
Enable Python 3.10 for tests ( #719 )
...
* Try to test on Python 3.10
* Prevent to YAML type cast
* Bump poetry
* Removed async_lru
* Disable fail-fast on tests
* Fixed typing
* Added patch-notes
2021-10-06 22:49:14 +03:00
darksidecat
71eb5fc44e
fix #660 prepare parse mode for input_message_content ( #661 )
...
* fix #660 prepare parse mode for input_message_content of InlineQueryResult
* remove redundant get
* black lint
* add towncrier patch note
2021-08-17 00:08:36 +03:00
Oleg A
f2f276b8cf
refactor: remove redundant pytest marks ( #654 )
2021-08-03 23:40:14 +03:00
Alex Root Junior
4f2cc75951
Global filters for router ( #644 )
...
* Bump version
* Added more comments
* Cover registering global filters
* Reformat code
* Add more tests
* Rework event propagation to routers mechanism. Fixed compatibility with Python 3.10 syntax (match keyword)
* Fixed tests
* Fixed coverage
Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-07-31 23:34:09 +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
83d6ab48c5
Backport and improvements ( #601 )
...
* Backport RedisStorage, deep-linking
* Allow prereleases for aioredis
* Bump dependencies
* Correctly skip Redis tests on Windows
* Reformat tests code and bump Makefile
2021-06-15 01:45:31 +03:00
Aleksandr
32bc05130f
Added get_url() method for Message object and shifted_id property for Chat object ( #585 )
...
* Added get_url() method for Message object and shifted_id property for Chat object
* Added missing closing bracket to shifted_id description
* Added basic groups to skipped pattern, simplified code
* Return None instead of raising TypeError, removed redundant f-string
* Change get_url typing to Optional[str]
* Better shifted_id method
* get_url tests added
* Added whitespace (E226)
* Code format with black
* Parametrized test
2021-06-05 13:37:01 +03:00
Alex Root Junior
7dd80d281f
Added lost files
2021-05-12 23:56:03 +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
Alex Root Junior
f5684aef07
Update default parse_mode propagation.
2020-06-14 18:18:29 +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
Alex Root Junior
4caa8faab8
Update tests
2020-01-25 18:26:30 +02:00
Alex Root Junior
d2d4f337fb
Update tests
2020-01-11 19:56:38 +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
jrootjunior
9d78e82f8c
Cover Command filter
2019-12-04 18:04:29 +02:00
jrootjunior
aa7c5796dd
Add default parse mode
2019-12-03 13:10:09 +02:00
Alex Root Junior
d7a35f50a9
Reformat code
2019-11-19 22:44:40 +02:00
Alex Root Junior
23abe35212
Update tests for all methods
2019-11-19 22:44:12 +02:00
jrootjunior
33c661d732
More tests
2019-11-19 18:54:02 +02:00
Alex Root Junior
5413cf4367
Reformate tests code
2019-11-19 00:05:19 +02:00
Alex Root Junior
e1b2226d03
Enable 37 auto-generated tests
2019-11-19 00:04:02 +02:00
Alex Root Junior
567584b741
Auto-generate tests for methods
2019-11-18 22:22:46 +02:00
jrootjunior
ef956f7ec2
Add API methods testing prototype
2019-11-18 17:44:07 +02:00
Alex Root Junior
a24708d589
Add tests for BaseSession and TelegramAPIServer
2019-11-16 00:52:18 +02:00