Skip to content

Commit

Permalink
Update commands.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VJBots authored Jul 30, 2024
1 parent abb634c commit bcd9d74
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions plugins/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,21 @@ async def start(client, message):
protect_content=True
)
elif data.split("-", 1)[0] == "BATCH":
if not await check_verification(client, message.from_user.id) and VERIFY_MODE == True:
btn = [[
InlineKeyboardButton("Verify", url=await get_token(client, message.from_user.id, f"https://telegram.me/{username}?start="))
],[
InlineKeyboardButton("How To Open Link & Verify", url=VERIFY_TUTORIAL)
]]
await message.reply_text(
text="<b>You are not verified !\nKindly verify to continue !</b>",
protect_content=True,
reply_markup=InlineKeyboardMarkup(btn)
)
return
try:
if not await check_verification(client, message.from_user.id) and VERIFY_MODE == True:
btn = [[
InlineKeyboardButton("Verify", url=await get_token(client, message.from_user.id, f"https://telegram.me/{username}?start="))
],[
InlineKeyboardButton("How To Open Link & Verify", url=VERIFY_TUTORIAL)
]]
await message.reply_text(
text="<b>You are not verified !\nKindly verify to continue !</b>",
protect_content=True,
reply_markup=InlineKeyboardMarkup(btn)
)
return
except Exception as e:
await message.reply_text(f"**Error - {e}**")
sts = await message.reply("**🔺 ᴘʟᴇᴀsᴇ ᴡᴀɪᴛ**")
file_id = data.split("-", 1)[1]
msgs = BATCH_FILES.get(file_id)
Expand Down

0 comments on commit bcd9d74

Please sign in to comment.