From 068875534b6b9284a6053ac4b3747d13f9cb3367 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kriuchkov <36363097+Latand@users.noreply.github.com> Date: Sun, 13 Aug 2023 17:56:32 +0300 Subject: [PATCH] Examples/dev 3x refactor fix* (#1261) * Refactor and improve bot messages Refactored bot code to use aiogram enumerations and enhanced chat messages with markdown beautifications for a more user-friendly display. CommandStart() is now used instead of Command('start') for readability. Furthermore, the bot's 'stop' command was improved, ensuring it executes appropriately during KeyboardInterrupt or SystemExit. Additionally, the bot's logging was adjusted to output to sys.stdout for better logs' readability. * Added Changelog * Add guidance comments on obtaining bot tokens from environment variables * Remove hardcoded tokens, opt for environment variable * Remove unnecessary spaces and reorganize imports * Fix error, switch default storage from Redis to Memory, and add logging to multibot example * fix changelog version --------- Co-authored-by: Alex Root Junior --- CHANGES/1256.doc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 CHANGES/1256.doc.rst diff --git a/CHANGES/1256.doc.rst b/CHANGES/1256.doc.rst new file mode 100644 index 00000000..2b8af247 --- /dev/null +++ b/CHANGES/1256.doc.rst @@ -0,0 +1 @@ +Refactored examples code to use aiogram enumerations and enhanced chat messages with markdown beautifications for a more user-friendly display.