[check] some changes
This commit is contained in:
parent
9600f22159
commit
e386a41ab2
@ -79,10 +79,9 @@ async def _human_time_duration(seconds):
|
||||
)
|
||||
@check_blacklist()
|
||||
async def start_(c: Client, message: Message):
|
||||
BOT_NAME = me_bot.first_name
|
||||
await message.reply_text(
|
||||
f"""✨ **Welcome {message.from_user.mention()} !**\n
|
||||
💭 [{BOT_NAME}](https://t.me/{BOT_USERNAME}) **Is a bot to play music and video in groups, through the Telegram Group video chat!**
|
||||
💭 [{me_bot.first_name}](https://t.me/{BOT_USERNAME}) **Is a bot to play music and video in groups, through the Telegram Group video chat!**
|
||||
|
||||
💡 **Find out all the Bot's commands and how they work by clicking on the » 📚 Commands button!**
|
||||
|
||||
@ -129,7 +128,6 @@ async def alive(c: Client, message: Message):
|
||||
current_time = datetime.utcnow()
|
||||
uptime_sec = (current_time - START_TIME).total_seconds()
|
||||
uptime = await _human_time_duration(int(uptime_sec))
|
||||
BOT_NAME = me_bot.first_name
|
||||
|
||||
keyboard = InlineKeyboardMarkup(
|
||||
[
|
||||
@ -142,7 +140,7 @@ async def alive(c: Client, message: Message):
|
||||
]
|
||||
)
|
||||
|
||||
alive = f"**Hello {message.from_user.mention()}, i'm {BOT_NAME}**\n\n🧑🏼💻 My Master: [{ALIVE_NAME}](https://t.me/{OWNER_USERNAME})\n👾 Bot Version: `v{__version__}`\n🔥 Pyrogram Version: `{pyrover}`\n🐍 Python Version: `{__python_version__}`\n✨ PyTgCalls Version: `{pytover.__version__}`\n🆙 Uptime Status: `{uptime}`\n\n❤ **Thanks for Adding me here, for playing video & music on your Group's video chat**"
|
||||
alive = f"**Hello {message.from_user.mention()}, I'm {me_bot.first_name}**\n\n🧑🏼💻 My Master: [{ALIVE_NAME}](https://t.me/{OWNER_USERNAME})\n👾 Bot Version: `v{__version__}`\n🔥 Pyrogram Version: `{pyrover}`\n🐍 Python Version: `{__python_version__}`\n✨ PyTgCalls Version: `{pytover.__version__}`\n🆙 Uptime Status: `{uptime}`\n\n❤ **Thanks for Adding me here, for playing video & music on your Group's video chat**"
|
||||
|
||||
await c.send_photo(
|
||||
chat_id,
|
||||
@ -192,15 +190,13 @@ async def new_chat(c: Client, m: Message):
|
||||
pass
|
||||
else:
|
||||
await add_served_chat(chat_id)
|
||||
ass_uname = me_user.username
|
||||
bot_id = me_bot.id
|
||||
for member in m.new_chat_members:
|
||||
if chat_id in await blacklisted_chats():
|
||||
await m.reply(
|
||||
"❗️ This chat has blacklisted by sudo user and You're not allowed to use me in this chat."
|
||||
)
|
||||
return await bot.leave_chat(chat_id)
|
||||
if member.id == bot_id:
|
||||
if member.id == me_bot.id:
|
||||
return await m.reply(
|
||||
"❤️ Thanks for adding me to the **Group** !\n\n"
|
||||
"Appoint me as administrator in the **Group**, otherwise I will not be able to work properly, and don't forget to type `/userbotjoin` for invite the assistant.\n\n"
|
||||
@ -212,7 +208,7 @@ async def new_chat(c: Client, m: Message):
|
||||
InlineKeyboardButton("💭 Support", url=f"https://t.me/{GROUP_SUPPORT}")
|
||||
],
|
||||
[
|
||||
InlineKeyboardButton("👤 Assistant", url=f"https://t.me/{ass_uname}")
|
||||
InlineKeyboardButton("👤 Assistant", url=f"https://t.me/{me_user.username}")
|
||||
]
|
||||
]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user