(client, message)
| 91 | |
| 92 | @Client.on_message(filters.private & filters.command('setcaption')) |
| 93 | async 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')) |
| 102 | async def delete_caption(client, message): |
nothing calls this directly
no test coverage detected