from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton from load import bot async def answer_kb(user_id): me = await bot.get_me() kb = InlineKeyboardMarkup() kb.add(InlineKeyboardButton("Answer", url="https://t.me/{me}?start={user_id}" .format(me=me.username, user_id=user_id))) return kb