forked from aykhan026/MusicUserBot
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
now_playing.py
71 lines (62 loc) · 2.68 KB
/
now_playing.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Ballasresmi - 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.types import Message
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
from ᴋɪʀᴀ_ʟɪɢʜᴛ.pyro_auth import Li
"""
\____/ / \ \____/ / \ \____/ / \ \____/ / \ \____/ / \ \____/ /
/ __ \ \__/ / __ \ \__/ / __ \ \__/ / __ \ \__/ / __ \ \__/ / __ \ \_
"""
WHITE_COMMAND = Li.WHITE_COMMAND
@Client.on_message(demon_killer_sigki
& misa_misa
& filters.command("now", prefixes=WHITE_COMMAND)
)
async def show_current_playing_time(_, ryui: Message):
start_time = ded.start_time
playlist = ded.playlist
if not start_time:
pwn = await ryui.reply_text("Sinxronzasiya olunur @Ballasresmi", True)
await pwn.edit_text("Serverlə əlaqə yaradılır...")
await pwn.edit_text("♻️ Yüklənir [░░░░░░ ]")
await pwn.edit_text("♻️ Yüklənir [░░░░░░░░░░░░ ]")
await pwn.edit_text("♻️ Yüklənir [░░░░░░░░░░░░░░░░░░░░]")
await pwn.delete()
hawk = await ryui.reply_photo(
"https://telegra.ph/file/f52e92e80e10aa7fc294c.jpg",
caption="👨🏻💻 @Ballasresmi"
)
await wait_before_rm((hawk,), Kill_Time)
return
utcnow = datetime.utcnow().replace(microsecond=0)
if ded.msg.get('now') is not None:
await ded.msg['now'].delete()
ded.msg['now'] = await playlist[0].reply_text(
f"{emoji.PLAY_BUTTON} {utcnow - start_time} / "
f"{timedelta(seconds=playlist[0].audio.duration)}",
disable_notification=True
)
await ryui.delete()
"+|==========================================🍁----------[-_-]----------🍁==============================================|+"
async def wait_before_rm(messages: tuple, delay: int):
await asyncio.sleep(delay)
for msg in messages:
await msg.delete()
"""
\__/ \__/ \__/ \__/ \__/
/ \ / \ / \ / \ / \
BOT_RAMO
\__/ \__/ \__/ \__/ \__/
/ \ / \ / \ / \ / \
"""