forked from aykhan026/MusicUserBot
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
unmute.py
50 lines (44 loc) · 1.68 KB
/
unmute.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# BOT_RAMO - MusicUserBot
# Burdan hər hansı modulu kodu faylı reponu
# Kopyalayan peysərdi..!!!!
# Sahib - @BOT_RAMO
import os
import asyncio
from pyrogram import Client, filters, emoji
from pyrogram.methods.messages.download_media import DEFAULT_DOWNLOAD_DIR as fmedaddyy
from pyrogram.types import Message
from pytgcalls import GroupCall
from datetime import datetime, timedelta
from ᴠᴏɪᴄᴇ_ɪᴅ.typos import *
from ᴠᴏɪᴄᴇ_ɪᴅ.vocal import *
from ɴᴏᴛᴇʙᴏᴏᴋ.notes import *
from ᴍɪꜱᴀ_ᴀᴍᴀɴᴇ.life_death import *
from ᴍɪꜱᴀ_ᴀᴍᴀɴᴇ.red_eye import *
from ᴋɪʀᴀ_ʟɪɢʜᴛ.pyro_auth import Li
"""
\____/ / \ \____/ / \ \____/ / \ \____/ / \ \____/ / \ \____/ /
/ __ \ \__/ / __ \ \__/ / __ \ \__/ / __ \ \__/ / __ \ \__/ / __ \ \_
"""
DYNO_COMMAND = Li.DYNO_COMMAND
@Client.on_message(demon_killer_sigki
& senzo_kryo_ni
& misa_misa
& filters.command("unmutevc", prefixes=DYNO_COMMAND)
)
async def unmute(client, ryui: Message):
voice_chatting = ded.voice_chatting
chat_id = int("-100" + str(voice_chatting.full_chat.id))
chat = await client.get_chat(chat_id)
voice_chatting.set_is_mute(False)
hawk = await ryui.reply_photo(
"https://telegra.ph/file/f52e92e80e10aa7fc294c.jpg",
caption=f"🔊 **Oxumağa başladım\n {chat.title}**"
)
await delay_unmute_tm((hawk, ryui), Kill_Time)
async def delay_unmute_tm(messages: tuple, delay: int):
await asyncio.sleep(delay)
for msg in messages:
await msg.delete()
"""
☠BOT_RAMO
"""