forked from Pavel_Durov/python_bot
поломал, надеюсь починилось
This commit is contained in:
parent
cf87d86413
commit
787276cfc8
24
bot.py
24
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()
|
# @dp.message_handler()
|
||||||
async def echo(message: types.Message):
|
# async def echo(message: types.Message):
|
||||||
if 'привет' in message.text:
|
# if 'привет' in message.text:
|
||||||
await message.answer('pidor2')
|
# await message.answer('pidor2')
|
||||||
else:
|
# else:
|
||||||
await message.answer(message.text)
|
# await message.answer(message.text)
|
||||||
@dp.message_handler()
|
# @dp.message_handler()
|
||||||
|
|
||||||
|
# async def echo_mesaage(message: types.Message):
|
||||||
|
|
||||||
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