Skip to content

Commit a6f5424

Browse files
authored
Update Caption.py
1 parent 572c2cd commit a6f5424

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Rkn_Bots/Caption.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ async def restart_bot(b, m):
5959
@Client.on_message(filters.command("start") & filters.private)
6060
async def start_cmd(bot, message):
6161
user_id = int(message.from_user.id)
62-
user_det = {"_id": user_id}
63-
await users.insert_one(user_det)
62+
await insert(user_id)
6463
await message.reply(
6564
f"<b>Hey, {message.from_user.mention}\n\nI'm an auto-caption bot. I automatically edit captions for videos, audio files, and documents posted on channels.\n\nuse <code>/set_caption</code> to set caption\nUse<code>/delcaption</code> To delete caption and set caption to default.\n\nNote:All commands works on channels only</b>",
6665
reply_markup=types.InlineKeyboardMarkup([[

0 commit comments

Comments
 (0)