'Aiogram Multiprocessing

@dp.message_handler(content_types=types.ContentType.DOCUMENT)
async def Checker(message: types.Message):
if file_name.endswith('.txt') or file_name.endswitch('.TXT'):

# Many actions with calculations, cycles, the check can take up to an hour

How to make so that many users can check a text file for duplicates and it does not freeze while someone checks?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source