From 282d175d8abe69cbce9283df249338bd3612b94a Mon Sep 17 00:00:00 2001 From: BRANDED KING <121561060+WCGKING@users.noreply.github.com> Date: Wed, 5 Jun 2024 20:45:24 +0530 Subject: [PATCH] Delete FIXXMUSIC/plugins/bot/mustjoin.py --- FIXXMUSIC/plugins/bot/mustjoin.py | 38 ------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 FIXXMUSIC/plugins/bot/mustjoin.py diff --git a/FIXXMUSIC/plugins/bot/mustjoin.py b/FIXXMUSIC/plugins/bot/mustjoin.py deleted file mode 100644 index 43f545e..0000000 --- a/FIXXMUSIC/plugins/bot/mustjoin.py +++ /dev/null @@ -1,38 +0,0 @@ -from pyrogram import Client, filters -from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, Message -from pyrogram.errors import ChatAdminRequired, UserNotParticipant, ChatWriteForbidden -from FIXXMUSIC import app - -#-------------------------- - -MUST_JOIN = "Vashu123vg" -#------------------------ -@app.on_message(filters.incoming & filters.private, group=-1) -async def must_join_channel(app: Client, msg: Message): - if not MUST_JOIN: - return - try: - try: - await app.get_chat_member(MUST_JOIN, msg.from_user.id) - except UserNotParticipant: - if MUST_JOIN.isalpha(): - link = "https://t.me/" + MUST_JOIN - else: - chat_info = await app.get_chat(MUST_JOIN) - link = chat_info.invite_link - try: - await msg.reply_photo( - photo="https://telegra.ph/file/b0ad9b5bf078c001ce364.jpg", caption=f"๏ ᴀᴄᴄᴏʀᴅɪɴɢ ᴛᴏ ᴍʏ ᴅᴀᴛᴀʙᴀsᴇ ʏᴏᴜ'ᴠᴇ ɴᴏᴛ ᴊᴏɪɴᴇᴅ [๏sᴜᴘᴘᴏʀᴛ๏]({link}) ʏᴇᴛ, ɪғ ʏᴏᴜ ᴡᴀɴᴛ ᴛᴏ ᴜsᴇ ᴍᴇ ᴛʜᴇɴ ᴊᴏɪɴ [๏sᴜᴘᴘᴏʀᴛ๏]({link}) ᴀɴᴅ sᴛᴀʀᴛ ᴍᴇ ᴀɢᴀɪɴ ! ", - reply_markup=InlineKeyboardMarkup( - [ - [ - InlineKeyboardButton("๏Jᴏɪɴ๏", url=link), - ] - ] - ) - ) - await msg.stop_propagation() - except ChatWriteForbidden: - pass - except ChatAdminRequired: - print(f"๏ᴘʀᴏᴍᴏᴛᴇ ᴍᴇ ᴀs ᴀɴ ᴀᴅᴍɪɴ ɪɴ ᴛʜᴇ ᴍᴜsᴛ_Jᴏɪɴ ᴄʜᴀᴛ ๏: {MUST_JOIN} !")