This repository has been archived on 2022-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
it-volunteers-for-peace/handlers/commands.py

13 lines
358 B
Python
Raw Normal View History

2022-10-15 15:51:27 +00:00
from aiogram import types, Dispatcher
async def create_project(message: types.Message):
bot_info = await message.bot.get_me()
await message.reply(
f"Перейдите в лс к боту @{bot_info.username}"
)
def register_command_handlers(dp: Dispatcher):
dp.register_message_handler(create_project, commands="create_project")