Answer the question
In order to leave comments, you need to log in
How to combine the work of aiogram and telethon?
I have in the code like Telethon's handlers:
@client.on(events.NewMessage(forwards=False))
async def normal_handler1(event):
@dp.message_handler(content_types=['text'])
async def main(message: types.Message):
executor.start_polling(dp)
asyncio.create_task(client.run_until_disconnected())
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question