from aiogram import types from load import dp, bot from keyboards.inline.timetable import timetable @dp.message_handler(commands='timetable') async def get_table(message: types.Message): markup = timetable() await bot.send_message(message.chat.id, "q", reply_markup=markup)