something
This commit is contained in:
parent
376d5a0346
commit
020cb7f26d
@ -5,7 +5,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from config import ASSISTANT_NAME, BOT_USERNAME, IMG_1, IMG_2, UPDATES_CHANNEL
|
from config import ASSISTANT_NAME, BOT_USERNAME, IMG_1, IMG_2
|
||||||
from driver.filters import command, other_filters
|
from driver.filters import command, other_filters
|
||||||
from driver.queues import QUEUE, add_to_queue
|
from driver.queues import QUEUE, add_to_queue
|
||||||
from driver.veez import call_py, user
|
from driver.veez import call_py, user
|
||||||
@ -65,8 +65,6 @@ async def vplay(c: Client, m: Message):
|
|||||||
[
|
[
|
||||||
InlineKeyboardButton(text="• Mᴇɴᴜ", callback_data="cbmenu"),
|
InlineKeyboardButton(text="• Mᴇɴᴜ", callback_data="cbmenu"),
|
||||||
InlineKeyboardButton(text="• Cʟᴏsᴇ", callback_data="cls"),
|
InlineKeyboardButton(text="• Cʟᴏsᴇ", callback_data="cls"),
|
||||||
],[
|
|
||||||
InlineKeyboardButton(text="✨ Cʜᴀɴɴᴇʟ", url=f"https://t.me/{UPDATES_CHANNEL}"),
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@ -155,7 +153,7 @@ async def vplay(c: Client, m: Message):
|
|||||||
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=f"{IMG_1}",
|
photo=f"{IMG_1}",
|
||||||
caption=f"💡 **Track added to the queue**\n\n🏷 **Name:** [{songname}]({link})\n💭 **Chat:** `{chat_id}`\n🎧 **Request by:** {requester}\n🔢 **At position »** `{pos}`",
|
caption=f"💡 **Track added to queue »** `{pos}`\n\n🏷 **Name:** [{songname}]({link})\n💭 **Chat:** `{chat_id}`\n🎧 **Request by:** {requester}",
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
@ -179,7 +177,7 @@ async def vplay(c: Client, m: Message):
|
|||||||
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=f"{IMG_2}",
|
photo=f"{IMG_2}",
|
||||||
caption=f"💡 **video streaming started.**\n\n🏷 **Name:** [{songname}]({link})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
|
caption=f"💡 **Video streaming started.**\n\n🏷 **Name:** [{songname}]({link})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
@ -210,7 +208,7 @@ async def vplay(c: Client, m: Message):
|
|||||||
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=f"{IMG_1}",
|
photo=f"{IMG_1}",
|
||||||
caption=f"💡 **Track added to the queue**\n\n🏷 **Name:** [{songname}]({url})\n💭 **Chat:** `{chat_id}`\n🎧 **Request by:** {requester}\n🔢 **At position »** `{pos}`",
|
caption=f"💡 **Track added to queue »** `{pos}`\n\n🏷 **Name:** [{songname}]({url})\n💭 **Chat:** `{chat_id}`\n🎧 **Request by:** {requester}",
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
@ -229,7 +227,7 @@ async def vplay(c: Client, m: Message):
|
|||||||
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=f"{IMG_2}",
|
photo=f"{IMG_2}",
|
||||||
caption=f"💡 **video streaming started.**\n\n🏷 **Name:** [{songname}]({url})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
|
caption=f"💡 **Video streaming started.**\n\n🏷 **Name:** [{songname}]({url})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
)
|
)
|
||||||
except Exception as ep:
|
except Exception as ep:
|
||||||
@ -264,7 +262,7 @@ async def vplay(c: Client, m: Message):
|
|||||||
)
|
)
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=f"{IMG_1}",
|
photo=f"{IMG_1}",
|
||||||
caption=f"💡 **Track added to the queue**\n\n🏷 **Name:** [{songname}]({url})\n💭 **Chat:** `{chat_id}`\n🎧 **Request by:** {requester}\n🔢 **At position »** `{pos}`",
|
caption=f"💡 **Track added to queue »** `{pos}`\n\n🏷 **Name:** [{songname}]({url})\n💭 **Chat:** `{chat_id}`\n🎧 **Request by:** {requester}",
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
@ -283,7 +281,7 @@ async def vplay(c: Client, m: Message):
|
|||||||
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=f"{IMG_2}",
|
photo=f"{IMG_2}",
|
||||||
caption=f"💡 **video streaming started.**\n\n🏷 **Name:** [{songname}]({url})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
|
caption=f"💡 **Video streaming started.**\n\n🏷 **Name:** [{songname}]({url})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
)
|
)
|
||||||
except Exception as ep:
|
except Exception as ep:
|
||||||
@ -300,8 +298,6 @@ async def vstream(c: Client, m: Message):
|
|||||||
[
|
[
|
||||||
InlineKeyboardButton(text="• Mᴇɴᴜ", callback_data="cbmenu"),
|
InlineKeyboardButton(text="• Mᴇɴᴜ", callback_data="cbmenu"),
|
||||||
InlineKeyboardButton(text="• Cʟᴏsᴇ", callback_data="cls"),
|
InlineKeyboardButton(text="• Cʟᴏsᴇ", callback_data="cls"),
|
||||||
],[
|
|
||||||
InlineKeyboardButton(text="✨ Cʜᴀɴɴᴇʟ", url=f"https://t.me/{UPDATES_CHANNEL}"),
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@ -399,7 +395,7 @@ async def vstream(c: Client, m: Message):
|
|||||||
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
requester = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=f"{IMG_1}",
|
photo=f"{IMG_1}",
|
||||||
caption=f"💡 **Track added to the queue**\n\n💭 **Chat:** `{chat_id}`\n🎧 **Request by:** {requester}\n🔢 **At position »** `{pos}`",
|
caption=f"💡 **Track added to queue »** `{pos}`\n\n💭 **Chat:** `{chat_id}`\n🎧 **Request by:** {requester}",
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
@ -426,7 +422,7 @@ async def vstream(c: Client, m: Message):
|
|||||||
)
|
)
|
||||||
await m.reply_photo(
|
await m.reply_photo(
|
||||||
photo=f"{IMG_2}",
|
photo=f"{IMG_2}",
|
||||||
caption=f"💡 **[Live stream video]({link}) started.**\n\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
|
caption=f"💡 **[Video live]({link}) stream started.**\n\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
)
|
)
|
||||||
except Exception as ep:
|
except Exception as ep:
|
||||||
|
Loading…
Reference in New Issue
Block a user