MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / add_caption

Function add_caption

plugins/start_and_cb.py:93–99  ·  view source on GitHub ↗
(client, message)

Source from the content-addressed store, hash-verified

91
92@Client.on_message(filters.private & filters.command('setcaption'))
93async def add_caption(client, message):
94 rkn = await message.reply_text("__**ᴘʟᴇᴀsᴇ ᴡᴀɪᴛ**__")
95 if len(message.command) == 1:
96 return await rkn.edit("**__Gɪᴠᴇ Tʜᴇ Cᴀᴩᴛɪᴏɴ__\n\nExᴀᴍᴩʟᴇ:- `/setcaption {filename}\n\n💾 Sɪᴢᴇ: {filesize}\n\n⏰ Dᴜʀᴀᴛɪᴏɴ: {duration}\n**By: @TechifyBots`**")
97 caption = message.text.split(" ", 1)[1]
98 await digital_botz.set_caption(message.from_user.id, caption=caption)
99 await rkn.edit("__**✅ Cᴀᴩᴛɪᴏɴ Sᴀᴠᴇᴅ**__")
100
101@Client.on_message(filters.private & filters.command('delcaption'))
102async def delete_caption(client, message):

Callers

nothing calls this directly

Calls 1

set_captionMethod · 0.80

Tested by

no test coverage detected