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
This commit is contained in:
Alex Root Junior 2023-07-28 22:23:32 +03:00 committed by GitHub
parent 479e302cba
commit 2ecf9cefd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 45 additions and 49 deletions

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

@ -0,0 +1,2 @@
Removed the use of the context instance (Bot.get_current) from all placements that were used previously.
This is to avoid the use of the context instance in the wrong place.