From 5684bc366761b0173bee616ecad10f7e357ec15e Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Mon, 22 Apr 2024 23:40:32 +0300 Subject: [PATCH] Added changelog --- CHANGES/1468.feature.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 CHANGES/1468.feature.rst diff --git a/CHANGES/1468.feature.rst b/CHANGES/1468.feature.rst new file mode 100644 index 00000000..de78716c --- /dev/null +++ b/CHANGES/1468.feature.rst @@ -0,0 +1,13 @@ +Added context manager interface to Bot instance, from now you can use: + +.. code-block:: python + + async with Bot(...) as bot: + ... + +instead of + +.. code-block:: python + + async with Bot(...).context(): + ...