Removed deprecated arguments from Bot class (#1494)

* Remove deprecated attributes from Bot class

The deprecated attributes `parse_mode`, `disable_web_page_preview`, and `protect_content` have been removed from the Bot class. Additionally, the associated warnings and test cases have been deleted. These attributes should now be passed using the `default=DefaultBotProperties(...)` syntax instead.

* Added docs and changelog
This commit is contained in:
Alex Root Junior 2024-05-27 14:58:39 +03:00 committed by GitHub
parent 895f4f8dce
commit b5d94f17b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 117 additions and 82 deletions

2
CHANGES/1494.removal.rst Normal file
View file

@ -0,0 +1,2 @@
Removed deprecated arguments from Bot class
:code:`parse_mode`, :code:`disable_web_page_preview`, :code:`protect_content` as previously announced in v3.4.0.