JRoot Junior
0cf5afeb99
Add deprecation warnings to Bot properties
...
Three properties of the Bot class - parse_mode, disable_web_page_preview, and protect_content - have been marked as deprecated with proper warning messages. The associated tests have also been added to confirm the working of these deprecation warnings. Users are advised to use the updated alternatives specified in the warning messages.
2024-02-16 01:13:51 +02:00
Alex Root Junior
24f59da70d
Reworked bot-wide defaults ( #1392 )
...
* Reworked defaults
* Added changelog and partial docs
2024-01-27 17:19:45 +02:00
Oleg A
eacea996d4
Handle expected warnings & raise unexpected warnings ( #1315 )
...
* chore: replace fixture loop with event_loop
* chore: mark expected warnings
* chore: raise unexpected warnings
* chore: rm unused record
* fix: rm parenthesized context manager
* chore: warnings shall not pass
* chore: replace fixture loop with event_loop
* chore: mark expected warnings
* chore: raise unexpected warnings
* chore: rm unused record
* fix: rm parenthesized context manager
* chore: warnings shall not pass
* Revert "chore: raise unexpected warnings"
This reverts commit 4c91df243d .
* chore: warnings shall not pass v2
* fix: graceful aiohttp session close
* chore: minor typo
* chore: mark expected warnings
* fix: temporary mute ResourceWarning
#1320
* fix: close pool with redis
* chore: code reformat and lint
* chore: simplify tests with fixture
* chore: make aresponses clear
* chore: divide asserts with blank line
* chore: rm duplicated assertions
* chore: rm unnecessary extra
* chore: bump test dependencies
* chore: bump test dependencies (fix)
2023-10-01 15:28:54 +03:00
Alex Root Junior
655b3a2d48
Remove warnings about pytest asyncio mode
2022-12-30 16:10:06 +02:00
Alex Root Junior
6db3778c6f
Tests on Python 3.11 ( #1044 )
...
* Try to use Python 3.11
* Remove `asynctest` dependency
* Fixed aiofiles tests
* Added changelog
2022-10-26 22:21:04 +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
Oleg A
f2f276b8cf
refactor: remove redundant pytest marks ( #654 )
2021-08-03 23:40:14 +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
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