mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Refactor and improve bot examples (#1256)
* 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
This commit is contained in:
parent
68c0516f69
commit
c516ea9d6a
8 changed files with 89 additions and 56 deletions
1
CHANGES/5780.doc.rst
Normal file
1
CHANGES/5780.doc.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Refactored examples code to use aiogram enumerations and enhanced chat messages with markdown beautifications for a more user-friendly display.
|
||||
Loading…
Add table
Add a link
Reference in a new issue