async def _(c, m): try: await m.answer() except Exception: pass await m.edit_message_text( ms.ADDED_TO_QUEUE.format( per_user_process_count=Config.MAX_PROCESSES_PER_USER), ) c.process_pool.new_task(( m.from_user.id, ProcessFactory(process_type=ProcessTypes.MEDIAINFO, client=c, input_message=m), ))
async def _(c, m): reply_message = await m.reply_text( ms.ADDED_TO_QUEUE.format(per_user_process_count=Config.MAX_PROCESSES_PER_USER), quote=True, ) if m.reply_to_message.text.startswith("#trim_video"): process_type = ProcessTypes.TRIM_VIDEO else: process_type = ProcessTypes.MANNUAL_SCREENSHOTS c.process_pool.new_task( ( m.from_user.id, ProcessFactory( process_type=process_type, client=c, input_message=m, reply_message=reply_message, ), ) )