Alex Root Junior
2ecf9cefd7
Removed the use of the context instance (Bot.get_current) from all placements that were used previously. ( #1230 )
...
* Removed the use of the context instance (Bot.get_current) from all placements that were used previously.
* Fixed tests
* Added changelog
* Change category
2023-07-28 22:23:32 +03:00
Alex Root Junior
479e302cba
Bump dependencies and own version
2023-07-28 21:54:09 +03:00
Alex Root Junior
27f48c60de
Disable hatch bump
2023-07-17 23:07:21 +03:00
Alex Root Junior
ea0ecbcd50
Render changelog
2023-07-17 23:02:10 +03:00
Alex Root Junior
71e7e62e36
Update publish pipeline
2023-07-17 22:57:31 +03:00
Alex Root Junior
fcf9454e13
Merge branch 'Latand/dev-3.x' into dev-3.x
2023-07-17 03:11:32 +03:00
Alex Root Junior
5236329521
Update hints
2023-07-17 03:09:36 +03:00
Alex Root Junior
6044a73e55
Small changes in the changelog
2023-07-17 02:56:35 +03:00
Alex Root Junior
c9d5b37d5c
Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x
2023-07-17 02:49:34 +03:00
Alex Root Junior
ac27b99751
Bump API version
2023-07-17 02:49:29 +03:00
Alex Root Junior
710c7669c4
Bump magic-filter to 1.0.10 ( #1221 )
...
* Bump magic-filter to 1.0.10
* Added changelog
* Fixed compatibility
2023-07-17 02:48:27 +03:00
SM CheeseNick
7f472eff42
Update dispatcher.py ( #1220 )
...
In line 469 corrected a typo in the word "more" (was "mre")
2023-07-17 00:28:30 +03:00
Alex Root Junior
21351de335
Fixed #1217 : Fixed union subtypes generation inside arrays of elements
2023-07-17 00:10:47 +03:00
Alex Root Junior
0ed62bcadf
Removed pydantic base fields from docs
2023-07-16 23:16:43 +03:00
Alex Root Junior
853b72f38d
Added possibility to use HashTag/CashTag elements without prefixing content, added sep: str argument to the as_line function.
2023-07-16 23:04:06 +03:00
Alex Root Junior
afeb659b82
Added test that prove previous fix
2023-07-16 22:49:18 +03:00
Alex Root Junior
74e00a30b1
"Add get_mounted_bot function and improve model comparison in tests"
...
In this commit, a new function `get_mounted_bot` was added to `context_controller.py` that returns the bot mounted in context. This function was needed to bypass the limitation in pydantic BaseModel's properties, which neither support computed fields nor serialization/validation.
Various tests were also updated to compare models using `model_dump_json()` method rather than comparing the models directly. This change provides more accurate comparisons by considering default values in the models.
Further, the dispatcher was adjusted to enforce update re-mounting if the mounted bot differs from the current update. This allows shortcuts to be used in the bot's current instance and ensures the correct propagation of the context to all the nested objects and attributes of Updates.
2023-07-16 22:46:45 +03:00
Alex Root Junior
31c11c31e0
Fixed subtypes and union types generation, new enums added ( #1213 )
...
* Fixed subtypes and union types generation, new enums added
* Added changes description
2023-07-11 23:39:54 +03:00
Alex Root Junior
a7b92bb050
PoC: Bot instance inside method shortcuts using pydantic Validation Context ( #1210 )
...
* PoC: Mount objects to the Bot instance, bind shortcuts to configured instance
* Fixe docstring of the bind method
* Pass Bot instance explicitly to the URLInputFile
* Added tests
* Added changelog
* Refactor aiogram client and update tests
Refactored base.py to improve code readability by separating response_type operation from model_validate(). Also, adjusted the parameters in URLInputFile() within test_input_file.py for better test coverage. Updated input_file.py to streamline read method and avoid unnecessary instantiation of Bot class. Lastly, adjusted typing in methods/base.py to enhance code clarity.
* Update changelog
2023-07-11 23:17:26 +03:00
Alex Root Junior
c39a803747
Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x
2023-07-04 00:39:15 +03:00
Alex Root Junior
2a143edf56
Hide pydantic service attributes from models
2023-07-04 00:39:02 +03:00
Alex Root Junior
333f376ad1
Fixed pydantic deprecation warnings
2023-07-04 00:33:57 +03:00
Andrey
3e3e8d3961
Remove patreon from contributing.rst ( #1204 )
2023-07-03 21:43:22 +03:00
Alex Root Junior
298b4f0e0d
Update texts
2023-07-02 15:12:42 +03:00
Alex Root Junior
461e59bbdd
Update pydantic to V2 ( #1202 )
...
* Update pydantic, fix errors and warnings (all?)
* Fixed typehints
* Reformat code, removed unused imports
* Fixed typing extensions version compatibility
* Fixed coverage
* Describe changes
* Regen code
2023-07-02 15:07:19 +03:00
Alex Root Junior
066d16b522
#1186 Renamed USER_IN_THREAD to USER_IN_TOPIC
2023-07-01 21:53:34 +03:00
Alex Root Junior
d29b18da8c
#1191 Added possibility to pass custom headers to URLInputFile object ( #1197 )
2023-06-25 01:39:26 +03:00
Alex Root Junior
484a61bdc1
Fixed workflow data propagation ( #1196 )
...
* Coverage
* Added changelog
2023-06-25 01:11:00 +03:00
sheldy
a890622e40
parameter secret_token ( #1173 )
...
* Added secret token validation
2023-06-25 00:40:04 +03:00
Alex Root Junior
5b20f81654
Formatting tools ( #1172 )
...
* Added base implementation of formatting utility
* Refactored and added docs
* Added changelog
* Coverage
2023-06-10 20:47:45 +03:00
latand
af4b9cc415
fix typing
2023-06-02 11:12:34 +03:00
latand
caba07a529
update changelog
2023-06-02 10:17:39 +03:00
latand
1abbf9a218
fix typehint
2023-06-02 10:15:20 +03:00
latan
6a3df4d6f3
removed auto_resolve_update_types from run_polling
2023-06-01 22:53:16 +03:00
latan
ce444a9044
change the default value for allowed updates to UNSET TYPE
2023-06-01 22:51:55 +03:00
latan
a5ffa37b69
make resolving update types by default in dispatcher.py
2023-06-01 22:49:04 +03:00
latan
e955d7cb3b
add towncrier file for a feature
2023-05-23 13:24:29 +03:00
latan
b0386c9250
Add auto_resolve_update_types argument to start_polling method.
2023-05-23 13:09:33 +03:00
Nikita
c418689dc1
Fix markdown spoiler ( #1176 )
...
* Fix spoiler
* added a explanation
* Updated the TestTextDecoration.test_apply_single_entity
---------
Co-authored-by: = <=>
2023-05-13 14:10:15 +03:00
Alex Root Junior
68a6c2c192
Removed patreon, because it supports russian terrorists
2023-05-07 20:03:07 +03:00
Alex Root Junior
cf269e15f4
Added create_channel_bot_link function
2023-04-23 03:30:48 +03:00
Alex Root Junior
62a9f0cb6e
Removed Text filter ( #1170 )
...
* Removed Text filter
* Added changelog
* Clean docs
* Fixed pytz
2023-04-22 20:21:17 +03:00
Alex Root Junior
dad3cdc409
Fixed mypy
2023-04-22 19:54:56 +03:00
Alex Root Junior
c9a8dad5ee
Update dependencies
2023-04-22 19:48:04 +03:00
Alex Root Junior
942ba0d520
Forum topic in FSM ( #1161 )
...
* Base implementation
* Added tests, fixed arguments priority
* Use `Optional[X]` instead of `X | None`
* Added changelog
* Added tests
2023-04-22 19:35:41 +03:00
Alex Root Junior
1538bc2e2d
Bot API 6.7 ( #1168 )
...
* Added 6.7 features
* Update after release
* Added tests
* Added changelog
2023-04-22 18:09:59 +03:00
Alex Root Junior
aad2de4324
Improve callback data serialization ( #1163 )
...
* Improve callback data serialization
* Added tests and changelog
2023-04-21 00:17:28 +03:00
Alex Root Junior
fb3076d40f
Fix compatibility with Python 3.8-3.9 ( #1162 )
...
* Try to fix compatibility with Python 3.8-3.9
* Added changelog
2023-04-21 00:17:06 +03:00
Alex Root Junior
399ccb2b00
Update butcher
2023-04-20 23:44:52 +03:00
Andrey
2dd019d486
Fix typo ( #1164 )
2023-04-17 00:31:33 +03:00