поломал, надеюсь починилось

This commit is contained in:
Pavel_Duron 2022-10-18 20:25:23 +10:00
parent cf87d86413
commit 787276cfc8

24
bot.py
View File

@ -15,19 +15,19 @@ async def send_welcome(message: types.Message):
async def send_welcome(message: types.Message):
kb = [types.KeyboardButton(text="Пошел на хуй"), types.KeyboardButton(text="Нет, ты!")]
keyboard = types.ReplyKeyboardMarkup(keyboard=kb)
await message.reply("Дарова", reply_markup=keyboard)
"""
@dp.message_handler()
async def echo(message: types.Message):
if 'привет' in message.text:
await message.answer('pidor2')
else:
await message.answer(message.text)
@dp.message_handler()
keyboard = types.ReplyKeyboardMarkup(keyboard=kb)
await message.reply("Дарова", reply_markup=keyboard)
# @dp.message_handler()
# async def echo(message: types.Message):
# if 'привет' in message.text:
# await message.answer('pidor2')
# else:
# await message.answer(message.text)
# @dp.message_handler()
# async def echo_mesaage(message: types.Message):
async def echo_mesaage(message: types.Message):
"""
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)