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

Function delete_caption

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

Source from the content-addressed store, hash-verified

100
101@Client.on_message(filters.private & filters.command('delcaption'))
102async def delete_caption(client, message):
103 rkn = await message.reply_text("__**ᴘʟᴇᴀsᴇ ᴡᴀɪᴛ**__")
104 caption = await digital_botz.get_caption(message.from_user.id)
105 if not caption:
106 return await rkn.edit("__**😔 Yᴏᴜ Dᴏɴ'ᴛ Hᴀᴠᴇ Aɴy Cᴀᴩᴛɪᴏɴ**__")
107 await digital_botz.set_caption(message.from_user.id, caption=None)
108 await rkn.edit("__**❌️ Cᴀᴩᴛɪᴏɴ Dᴇʟᴇᴛᴇᴅ**__")
109
110@Client.on_message(filters.private & filters.command('seecaption'))
111async def see_caption(client, message):

Callers

nothing calls this directly

Calls 2

get_captionMethod · 0.80
set_captionMethod · 0.80

Tested by

no test coverage detected