Skip to content

Commit

Permalink
Control protect content
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelkb authored May 27, 2023
1 parent 3c04ad1 commit e300721
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async def start(client, message):
if str(message.from_user.id) != str(userid):
return await message.reply_text(
text="<b>Iɴᴠᴀʟɪᴅ ʟɪɴᴋ ᴏʀ Exᴘɪʀᴇᴅ ʟɪɴᴋ !</b>",
protect_content=True
protect_content=True if PROTECT_CONTENT else False
)
is_valid = await check_token(client, userid, token)
if is_valid == True:
Expand All @@ -256,7 +256,7 @@ async def start(client, message):
await verify_user(client, userid, token)
await message.reply_text(
text=f"<b>Hᴇʏ {message.from_user.mention}, Yᴏᴜ ᴀʀᴇ sᴜᴄᴄᴇssғᴜʟʟʏ ᴠᴇʀɪғɪᴇᴅ !\nNᴏᴡ ʏᴏᴜ ʜᴀᴠᴇ ᴜɴʟɪᴍɪᴛᴇᴅ ᴀᴄᴄᴇss ғᴏʀ ᴀʟʟ ᴍᴏᴠɪᴇs ᴛɪʟʟ ᴛʜᴇ ɴᴇxᴛ ᴠᴇʀɪғɪᴄᴀᴛɪᴏɴ ᴡʜɪᴄʜ ɪs ᴀғᴛᴇʀ 12 ʜᴏᴜʀs ғʀᴏᴍ ɴᴏᴡ.</b>",
protect_content=True,
protect_content=True if PROTECT_CONTENT else False,
reply_markup=InlineKeyboardMarkup(btn)
)
return
Expand All @@ -265,15 +265,15 @@ async def start(client, message):
]]
await message.reply_text(
text=f"<b>Hᴇʏ {message.from_user.mention}, Yᴏᴜ ᴀʀᴇ sᴜᴄᴄᴇssғᴜʟʟʏ ᴠᴇʀɪғɪᴇᴅ !\nNᴏᴡ ʏᴏᴜ ʜᴀᴠᴇ ᴜɴʟɪᴍɪᴛᴇᴅ ᴀᴄᴄᴇss ғᴏʀ ᴀʟʟ ᴍᴏᴠɪᴇs ᴛɪʟʟ ᴛʜᴇ ɴᴇxᴛ ᴠᴇʀɪғɪᴄᴀᴛɪᴏɴ ᴡʜɪᴄʜ ɪs ᴀғᴛᴇʀ 12 ʜᴏᴜʀs ғʀᴏᴍ ɴᴏᴡ.</b>",
protect_content=True,
protect_content=True if PROTECT_CONTENT else False,
reply_markup=InlineKeyboardMarkup(btn)
)
await verify_user(client, userid, token)
return
else:
return await message.reply_text(
text="<b>Iɴᴠᴀʟɪᴅ ʟɪɴᴋ ᴏʀ Exᴘɪʀᴇᴅ ʟɪɴᴋ !</b>",
protect_content=True
protect_content=True if PROTECT_CONTENT else False
)

files_ = await get_file_details(file_id)
Expand All @@ -286,7 +286,7 @@ async def start(client, message):
]]
await message.reply_text(
text="<b>Yᴏᴜ ᴀʀᴇ ɴᴏᴛ ᴠᴇʀɪғɪᴇᴅ!\nKɪɴᴅʟʏ ᴠᴇʀɪғʏ ᴛᴏ ᴄᴏɴᴛɪɴᴜᴇ Sᴏ ᴛʜᴀᴛ ʏᴏᴜ ᴄᴀɴ ɢᴇᴛ ᴀᴄᴄᴇss ᴛᴏ ᴜɴʟɪᴍɪᴛᴇᴅ ᴍᴏᴠɪᴇs ᴜɴᴛɪʟ 12 ʜᴏᴜʀs ғʀᴏᴍ ɴᴏᴡ !</b>",
protect_content=True,
protect_content=True if PROTECT_CONTENT else False,
reply_markup=InlineKeyboardMarkup(btn)
)
return
Expand Down Expand Up @@ -338,7 +338,7 @@ async def start(client, message):
]]
await message.reply_text(
text="<b>Yᴏᴜ ᴀʀᴇ ɴᴏᴛ ᴠᴇʀɪғɪᴇᴅ!\nKɪɴᴅʟʏ ᴠᴇʀɪғʏ ᴛᴏ ᴄᴏɴᴛɪɴᴜᴇ Sᴏ ᴛʜᴀᴛ ʏᴏᴜ ᴄᴀɴ ɢᴇᴛ ᴀᴄᴄᴇss ᴛᴏ ᴜɴʟɪᴍɪᴛᴇᴅ ᴍᴏᴠɪᴇs ᴜɴᴛɪʟ 12 ʜᴏᴜʀs ғʀᴏᴍ ɴᴏᴡ !</b>",
protect_content=True,
protect_content=True if PROTECT_CONTENT else False,
reply_markup=InlineKeyboardMarkup(btn)
)
return
Expand Down Expand Up @@ -850,4 +850,4 @@ async def shortlink(bot, message):
await save_group_settings(grpid, 'shortlink', shortlink_url)
await save_group_settings(grpid, 'shortlink_api', api)
await save_group_settings(grpid, 'is_shortlink', True)
await reply.edit_text(f"<b>Sᴜᴄᴄᴇssғᴜʟʟʏ ᴀᴅᴅᴇᴅ sʜᴏʀᴛʟɪɴᴋ API ғᴏʀ {title}.\n\nCᴜʀʀᴇɴᴛ Sʜᴏʀᴛʟɪɴᴋ Wᴇʙsɪᴛᴇ: <code>{shortlink_url}</code>\nCᴜʀʀᴇɴᴛ API: <code>{api}</code></b>")
await reply.edit_text(f"<b>Sᴜᴄᴄᴇssғᴜʟʟʏ ᴀᴅᴅᴇᴅ sʜᴏʀᴛʟɪɴᴋ API ғᴏʀ {title}.\n\nCᴜʀʀᴇɴᴛ Sʜᴏʀᴛʟɪɴᴋ Wᴇʙsɪᴛᴇ: <code>{shortlink_url}</code>\nCᴜʀʀᴇɴᴛ API: <code>{api}</code></b>")

0 comments on commit e300721

Please sign in to comment.