Commit graph

1946 commits

Author SHA1 Message Date
Oleg A
75f0aa745e
chore: rm duplicated assertions 2023-09-23 10:35:24 +03:00
Oleg A
382094c2d1
chore: divide asserts with blank line 2023-09-23 10:35:00 +03:00
Oleg A
acf8c1b8f4
chore: make aresponses clear 2023-09-23 08:49:21 +03:00
Oleg A
8076cc2bf7
chore: simplify tests with fixture 2023-09-23 08:28:39 +03:00
Oleg A
5c4f4c58c3
chore: code reformat and lint 2023-09-23 00:52:20 +03:00
Oleg A
182a8c314c
fix: close pool with redis 2023-09-23 00:49:35 +03:00
Oleg A
5d9173a140
fix: temporary mute ResourceWarning
#1320
2023-09-23 00:46:06 +03:00
Oleg A
8f8f0cb5f1
chore: mark expected warnings 2023-09-23 00:41:10 +03:00
Oleg A
511dadcb6e
chore: minor typo 2023-09-20 13:03:17 +03:00
Oleg A
56a78b97eb
fix: graceful aiohttp session close 2023-09-20 12:58:13 +03:00
Oleg A
cb68075f70
chore: warnings shall not pass v2 2023-09-19 20:10:49 +03:00
Oleg A
76259ffcc4
Revert "chore: raise unexpected warnings"
This reverts commit 4c91df243d.
2023-09-19 19:52:47 +03:00
Oleg A
097c239b8a
Merge remote-tracking branch 'origin/handle-warnings' into handle-warnings 2023-09-19 18:43:06 +03:00
Oleg A
b953152514
chore: warnings shall not pass 2023-09-19 18:42:19 +03:00
Oleg A
fc76c40568
fix: rm parenthesized context manager 2023-09-19 18:42:19 +03:00
Oleg A
008e64ea9a
chore: rm unused record 2023-09-19 18:42:19 +03:00
Oleg A
4c91df243d
chore: raise unexpected warnings 2023-09-19 18:42:19 +03:00
Oleg A
c5e3afa0ca
chore: mark expected warnings 2023-09-19 18:42:19 +03:00
Oleg A
54bd29c805
chore: replace fixture loop with event_loop 2023-09-19 18:42:18 +03:00
Oleg A
8a77939d5b
Update deprecated pydantic fields access (#1309)
* chore: update deprecated pydantic fields access

* chore: add type hints for test

* fix: 3.9- type support
2023-09-19 17:44:39 +03:00
Oleg A
490381b57f
chore: apply lint&reformat (#1307) 2023-09-19 17:43:43 +03:00
Oleg A
ac62184443
fix: new towncrier docs link (#1306) 2023-09-19 17:43:10 +03:00
Oleg A
83a01f014c
fix: added absent params for button builders (#1304)
* fix: added absent params for button builders

* docs: added changelog

* fix: renamed changelog item
2023-09-19 17:42:09 +03:00
Oleg A
d12edb9e3a
chore: warnings shall not pass 2023-09-18 16:33:48 +03:00
Oleg A
b6e28a0b90
fix: rm parenthesized context manager 2023-09-18 16:26:33 +03:00
Oleg A
5a6bdfd54b
chore: rm unused record 2023-09-18 16:23:43 +03:00
Oleg A
3a15a393b0
chore: raise unexpected warnings 2023-09-18 15:39:18 +03:00
Oleg A
b9026428c3
chore: mark expected warnings 2023-09-18 15:25:45 +03:00
Oleg A
52ca61b388
chore: replace fixture loop with event_loop 2023-09-18 14:53:05 +03:00
Oleg A
c229cf8c7b
Updated migration guide with API server (#1299)
* docs: updated migration guide with API server

* Update docs/migration_2_to_3.rst

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

---------

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2023-09-11 00:34:02 +03:00
Alex Root Junior
69c2e1282f
Update filtering docs page 2023-09-10 22:42:32 +03:00
Alex Root Junior
28cc2384e8
Fixed typo 2023-09-07 22:44:05 +03:00
Alex Root Junior
b94123de3d
Remove commands= from examples 2023-09-06 00:50:46 +03:00
Alex Root Junior
b56628bb2e
Update dates interval in license file 2023-09-03 03:16:48 +03:00
Oleg A
995a0d7e9b
Custom encoding support (#1278)
* Custom encoding support in deep-linking
2023-09-03 00:26:57 +03:00
Alex Root Junior
5cf8d7b565
Add MediaGroupBuilder for media group construction (#1293)
Implemented a MediaGroupBuilder class in 'aiogram/utils/media_group.py' to help construct media groups. The class supports addition of different media types (audio, photo, video, document) to the media group with a maximum limit of 10 files. The functionality is demonstrated and usage is documented in 'docs/utils/media_group.rst'. Added related test cases in 'tests/test_utils/test_media_group.py'. This is to streamline and simplify the process of media group creation
2023-09-03 00:25:31 +03:00
Alex Root Junior
8fd110cdd1
Bump version 2023-09-03 00:01:22 +03:00
Alex Root Junior
0161322598
Bump changelog 2023-09-01 18:04:42 +03:00
Alex Root Junior
04bd0c9e7c
Fixed error overlapping when validation error is caused by remove_unset root validator in base types and methods. (#1290)
* Ensure base type validation can handle non-dictionary values

The update introduces a condition to verify whether the values being validated are a dictionary before attempting to handle UNSET_TYPE in the aiogram base type. This adjustment helps to prevent potential errors or incorrect validation when non-dictionary values are faced.

* Added a test case for non-dictionary input in remove_unset method

* Added changelog

* Fixed tests
2023-08-29 02:01:54 +03:00
Alex Root Junior
e1be9dd668
Fix Message.send_copy method for stories (#1287)
* Fix `Message.send_copy` method for stories

Fixed an issue with the `Message.send_copy` method, which was not functioning properly with story-type messages. The `ForwardMessage` logic has been added to the method to enable copying of stories, in addition to other types. Tests and documentation have also been updated to reflect these changes.

* Typo fix
2023-08-28 22:32:11 +03:00
Alex Root Junior
6eb5ef2606
Replace datetime.datetime with DateTime across codebase (#1285)
* #1277  Replace datetime.datetime with DateTime across codebase

Replaced all instances of standard library 'datetime.datetime' with a new 'DateTime' type from `.custom` module. This change is necessary to make all date-time values compatible with the Telegram Bot API (it uses Unix time). This will simplify the conversion process and eliminate potential errors related to date-time format mismatches. Changed codebase, butcher files, and modified 'pyproject.toml' to shift the typing-extensions dependency. The 'aiogram/custom_types.py' file was renamed to 'aiogram/types/custom.py' to better reflect its nature as a location for custom types used in the aiogram library.
2023-08-27 17:09:56 +03:00
Alex Root Junior
397f30b58b
Fixed method :code:Message.send_copy for stickers (#1284) 2023-08-26 23:24:51 +03:00
Alex Root Junior
ca4c1b4b95
Small documentation improvements and texts update 2023-08-26 23:18:20 +03:00
Alex Root Junior
806f8f67d5
Bump version 2023-08-26 22:38:22 +03:00
Alex Root Junior
2cf224da49
Reformat code 2023-08-26 22:34:30 +03:00
Alex Root Junior
ee8e457c5f
#1281 Fix magic operation .as_ for values interpreted as False (#1283)
Modified the ".as_" method in the magic filter class to correctly handle values that are interpreted as `False` such as `0`. Previously, the method incorrectly dismissed these valid values. The issue was identified and fixed to ensure correct handling of all valid data inputs.
2023-08-26 22:33:32 +03:00
onejeuu
bff2ed0a86
Fix markdown italic quote (#1282)
* Fix markdown italic quote

* Add changelog
2023-08-26 22:31:30 +03:00
Alex Root Junior
b7be9c2b81
Small cleanup in examples 2023-08-21 01:13:19 +03:00
Alex Root Junior
787ad6b094
Render changelog 2023-08-18 20:21:01 +03:00
Alex Root Junior
a0ae934c14
Bump minimum magic-filter version 2023-08-18 20:19:31 +03:00