Renamed echo func and added on_shutdown func
This commit is contained in:
parent
3c7040966b
commit
f6fc1d1286
2
app.py
2
app.py
|
@ -20,4 +20,4 @@ if __name__ == '__main__':
|
|||
from aiogram import executor
|
||||
from handlers import dp
|
||||
|
||||
executor.start_polling(dp, on_startup=on_startup)
|
||||
executor.start_polling(dp, on_startup=on_startup, on_shutdown=on_shutdown)
|
||||
|
|
|
@ -3,5 +3,5 @@ from loader import dp
|
|||
|
||||
|
||||
@dp.message_handler()
|
||||
async def bot_start(message: types.Message):
|
||||
async def bot_echo(message: types.Message):
|
||||
await message.answer(message.text)
|
||||
|
|
Loading…
Reference in New Issue
Block a user