import asyncio
from aiogram import Bot , Dispatcher, types
from aiogram.filters import Command, CommandStart
from aiogram.types import Message, ReplyKeyboardMarkup, KeyboardButton
from aiogram.enums import ParseMode



TOKEN_API = ("8530835193:AAGtTguA-L-r5LMkLSGANRTJVTSxX2vzwsI")

bot = Bot(token=TOKEN_API)
dp = Dispatcher()

menu = ReplyKeyboardMarkup(
    keyboard= [
        [KeyboardButton(text="Leftroom")],
        [KeyboardButton(text="Frontroom")],
        [KeyboardButton(text="Rightroom")]
    ],
    resize_keyboard = True,
    one_time_keyboard = True
)
###начоло кода
# def rooms():
#     await message.answer("Rooms",reply_markup=menu)

@dp.message(Command("start"))
async def cmd_start(message: Message):
    await message.answer("привет",reply_markup=menu)

@dp.message_handler(text="Leftroom")
async def lr_btn(message: types.Message):
    await message.answer("Rooms",reply_markup=menu)

@dp.message(Command("reply"))
async def cmd_reaply(message: Message):
    await message.reply("напишите как вас называть")

@dp.message(Command("p"))
async def cmd_look_at(message: Message):
    await message.reply("я могу помочь <b>вам</b>",parse_mode = ParseMode.HTML)

#запуск
async def main():
    await dp.start_polling(bot)


if __name__ =="__main__":
    asyncio.run(main())
