forked from Pavel_Durov/python_bot
поломал, надеюсь починилось
This commit is contained in:
parent
cf87d86413
commit
787276cfc8
22
bot.py
22
bot.py
@ -15,19 +15,19 @@ async def send_welcome(message: types.Message):
|
|||||||
|
|
||||||
async def send_welcome(message: types.Message):
|
async def send_welcome(message: types.Message):
|
||||||
kb = [types.KeyboardButton(text="Пошел на хуй"), types.KeyboardButton(text="Нет, ты!")]
|
kb = [types.KeyboardButton(text="Пошел на хуй"), types.KeyboardButton(text="Нет, ты!")]
|
||||||
keyboard = types.ReplyKeyboardMarkup(keyboard=kb)
|
keyboard = types.ReplyKeyboardMarkup(keyboard=kb)
|
||||||
await message.reply("Дарова", reply_markup=keyboard)
|
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):
|
# @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):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
executor.start_polling(dp, skip_updates=True)
|
executor.start_polling(dp, skip_updates=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user