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")