from aiogram import Bot, Dispatcher, executor, types
from config import TOKEN
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)
@dp.message_handler(commands=['start'])
async def start(message: types.Message):
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, row_width=3)
btn1 = types.KeyboardButton('Меню')
btn2 = types.KeyboardButton('Японская кухня')
btn3 = types.KeyboardButton('Бар')
btn4 = types.KeyboardButton('Вина')
btn5 = types.KeyboardButton('Галерея')
btn6 = types.KeyboardButton('Оформить заказ')
btn7 = types.KeyboardButton('Соц.Сети')
btn8 = types.KeyboardButton('Контакты')
markup.add(btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8)
send_message = f'<b>Здравствуйте {message.from_user.first_name} {message.from_user.last_name}</b>!\nЧто вас интересует?'
await bot.send_message(
message.chat.id, send_message, parse_mode='html', reply_markup=markup)
@dp.message_handler(['text'])
async def menuss(message: types.Message):
if message.text == 'Вернуться':
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, row_width=3)
btn1 = types.KeyboardButton('Меню')
btn2 = types.KeyboardButton('Японская кухня')
btn3 = types.KeyboardButton('Бар')
btn4 = types.KeyboardButton('Вина')
btn5 = types.KeyboardButton('Галерея')
btn6 = types.KeyboardButton('Оформить заказ')
btn7 = types.KeyboardButton('Соц.Сети')
btn8 = types.KeyboardButton('Контакты')
markup.add(btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8)
elif message.text == 'Меню':
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, row_width=3)
btn1 = types.KeyboardButton('Холодные закуски')
btn2 = types.KeyboardButton('Салаты')
btn3 = types.KeyboardButton('Супы')
btn4 = types.KeyboardButton('Горячие закуски')
btn5 = types.KeyboardButton("Спринг Роллы")
btn6 = types.KeyboardButton("Дим Самы")
btn7 = types.KeyboardButton("Гёдзы")
btn8 = types.KeyboardButton("Гуа Бао")
btn9 = types.KeyboardButton("Вок")
btn10 = types.KeyboardButton("Основные блюда")
btn11 = types.KeyboardButton("Гарниры")
btn12 = types.KeyboardButton("Десерты")
btn13 = types.KeyboardButton("Кухня Пекин")
btn14 = types.KeyboardButton("Вернуться")
markup.add(btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, btn10, btn11, btn12, btn13, btn14)
send_message = f'Что вас интересует?'
await bot.send_message(
message.chat.id, send_message, parse_mode='html', reply_markup=markup)
@dp.message_handler()
async def echo_message(msg: types.Message):
await bot.send_message(msg.from_user.id, '<strong>BEEF ТАТАКИ СО СЛАДКИМ ИМБИРЕМ</strong>', parse_mode='html')
if
name == '
main':
executor.start_polling(dp)