Skip to content

Commit 0064543

Browse files
authored
Updated Fixed & Better 🔥
1 parent 771063c commit 0064543

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rkn_Bots/Force_Sub.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ async def not_subscribed(_, client, message):
99
await insert(user_id)
1010
if not Config.FORCE_SUB:
1111
return False
12+
1213
try:
1314
user = await client.get_chat_member(Config.FORCE_SUB, message.from_user.id)
1415
if user.status == enums.ChatMemberStatus.BANNED:
@@ -23,11 +24,13 @@ async def not_subscribed(_, client, message):
2324
@Client.on_message(filters.private & filters.create(not_subscribed))
2425
async def forces_sub(client, message):
2526
buttons = [[InlineKeyboardButton(text="📢 Join Update Channel 📢", url=f"https://t.me/{Config.FORCE_SUB}") ]]
26-
text = "**Sᴏʀʀy Dᴜᴅᴇ Yᴏᴜ'ʀᴇ Nᴏᴛ Jᴏɪɴᴇᴅ My Cʜᴀɴɴᴇʟ 😐. Sᴏ Pʟᴇᴀꜱᴇ Jᴏɪɴ Oᴜʀ Uᴩᴅᴀᴛᴇ Cʜᴀɴɴᴇʟ Tᴏ Cᴄᴏɴᴛɪɴᴜᴇ**"
27+
text = "**Sᴏʀʀy Dᴜᴅᴇ Yᴏᴜ'ʀᴇ Nᴏᴛ Jᴏɪɴᴇᴅ My Cʜᴀɴɴᴇʟ 😐. Sᴏ Pʟᴇᴀꜱᴇ 'Jᴏɪɴ Oᴜʀ Uᴩᴅᴀᴛᴇ Cʜᴀɴɴᴇʟ' Tᴏ Cᴄᴏɴᴛɪɴᴜᴇ**"
2728
try:
2829
user = await client.get_chat_member(Config.FORCE_SUB, message.from_user.id)
2930
if user.status == enums.ChatMemberStatus.BANNED:
3031
return await client.send_message(message.from_user.id, text="Sᴏʀʀy Yᴏᴜ'ʀᴇ Bᴀɴɴᴇᴅ Tᴏ Uꜱᴇ Mᴇ")
32+
elif user.status == enums.ChatMemberStatus.LEFT:
33+
return await message.reply_text(text=text, reply_markup=InlineKeyboardMarkup(buttons))
3134
except UserNotParticipant:
3235
return await message.reply_text(text=text, reply_markup=InlineKeyboardMarkup(buttons))
3336
return await message.reply_text(text=text, reply_markup=InlineKeyboardMarkup(buttons))

0 commit comments

Comments
 (0)