Beispiel #1
0
async def _(c, m):
    await m.message.delete(True)
    await c.send_message(
        m.from_user.id,
        f'Now send your start and end time in the given format and should be upto {Config.MAX_TRIM_DURATION}s. \n**start:end**\n\nEg: `400:500` ==> This trims video from 400s to 500s',
        reply_to_message_id=m.message.reply_to_message.message_id,
        reply_markup=ForceReply())
async def _(c, m):
    dur = m.message.text.markdown.split('\n')[-1]
    await m.message.delete(True)
    await c.send_message(
        m.from_user.id,
        f'#manual_screenshot\n\n{dur}\n\nNow send your list of seconds separated by `,`(comma).\nEg: `0,10,40,60,120`.\nThis will generate screenshots at 0, 10, 40, 60, and 120 seconds. \n\n1. The list can have a maximum of 10 valid positions.\n2. The position has to be greater than or equal to 0, or less than the video length in order to be valid.',
        reply_to_message_id=m.message.reply_to_message.message_id,
        reply_markup=ForceReply())
Beispiel #3
0
async def _(c, m):
    dur = m.message.text.markdown.split('\n')[-1]
    await m.message.delete(True)
    await c.send_message(
        m.from_user.id,
        f'#trim_video\n\n{dur}\n\nNow send your start and end seconds in the given format and should be upto {Config.MAX_TRIM_DURATION}s. \n**start:end**\n\nEg: `400:500` ==> This trims video from 400s to 500s',
        reply_to_message_id=m.message.reply_to_message.message_id,
        reply_markup=ForceReply())
async def _(c, m):
    dur = m.message.text.markdown.split('\n')[-1]
    await m.message.delete(True)
    await c.send_message(
        m.from_user.id,
        #f nwefile.extension
        reply_to_message_id=m.message.reply_to_message.message_id,
        reply_markup=ForceReply()
    )


        )