aiogram/examples
JRoot Junior b2b2fcff70
Add context manager support for bot client
The bot client now supports the context manager protocol, providing automatic resource management. This enhancement helps to automatically close the session when leaving the context, which cleans up resources better. The documentation and tests have been updated accordingly to illustrate this new feature. Moreover, an example of usage without a dispatcher has been provided to clarify its use in simple cases.
2024-04-22 23:37:34 +03:00
..
data Add example for media group. 2017-11-21 20:33:22 +02:00
multi_file_bot Examples/dev 3x multi file (#1254) 2023-08-13 18:00:59 +03:00
web_app Remove commands= from examples 2023-09-06 00:50:46 +03:00
context_addition_from_filter.py Content from global filters (#1267) 2023-08-14 22:18:11 +03:00
echo_bot.py add default bot properties and clean imports (#1447) 2024-04-09 01:27:29 +03:00
echo_bot_webhook.py Refactor and improve bot examples (#1256) 2023-08-10 22:10:30 +03:00
echo_bot_webhook_ssl.py Refactor and improve bot examples (#1256) 2023-08-10 22:10:30 +03:00
error_handling.py Remove commands= from examples 2023-09-06 00:50:46 +03:00
finite_state_machine.py Small cleanup in examples 2023-08-21 01:13:19 +03:00
multibot.py Telegram Bot API 6.9 (#1319) 2023-09-22 17:46:57 +03:00
own_filter.py Remove filters factory, introduce docs translation (#978) 2022-10-02 00:04:31 +03:00
quiz_scene.py PoC Scenes (#1280) 2023-11-23 00:41:21 +02:00
scene.py PoC Scenes (#1280) 2023-11-23 00:41:21 +02:00
specify_updates.py Small cleanup in examples 2023-08-21 01:13:19 +03:00
without_dispatcher.py Add context manager support for bot client 2024-04-22 23:37:34 +03:00