From d82a7e0fc188d0b0ee74dba9a8a507368eb5a9b9 Mon Sep 17 00:00:00 2001 From: Aleksei Krugliak Date: Sun, 24 Apr 2022 00:02:54 +0400 Subject: [PATCH] Added currencies command! --- handlers/users/__init__.py | 1 + handlers/users/test.py | 2 -- requirements.txt | 3 ++- utils/set_bot_commands.py | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/handlers/users/__init__.py b/handlers/users/__init__.py index be157c2..d0f292a 100644 --- a/handlers/users/__init__.py +++ b/handlers/users/__init__.py @@ -4,3 +4,4 @@ from . import echo from . import add from . import settings from . import test +from . import currencies diff --git a/handlers/users/test.py b/handlers/users/test.py index 7ca67b2..cc6f0e2 100644 --- a/handlers/users/test.py +++ b/handlers/users/test.py @@ -1,6 +1,4 @@ from aiogram import types - - from loader import dp diff --git a/requirements.txt b/requirements.txt index 0350ad5..2822215 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ aiogram<3.0 -environs==9.5.0 \ No newline at end of file +environs==9.5.0 +requests~=2.27.1 \ No newline at end of file diff --git a/utils/set_bot_commands.py b/utils/set_bot_commands.py index 8d7763f..bd654b9 100644 --- a/utils/set_bot_commands.py +++ b/utils/set_bot_commands.py @@ -10,6 +10,7 @@ async def set_default_commands(dp): types.BotCommand("edit", "Edit expense."), types.BotCommand("list", "See my expenses."), types.BotCommand("settings", "Configure bot."), + types.BotCommand("currencies", "USD\EUR - GEL."), types.BotCommand("test", "Test command."), # types.BotCommand("settings3", "Configure bot."), ]