[check] some changes
This commit is contained in:
parent
9600f22159
commit
e386a41ab2
@ -79,10 +79,9 @@ async def _human_time_duration(seconds):
|
|||||||
)
|
)
|
||||||
@check_blacklist()
|
@check_blacklist()
|
||||||
async def start_(c: Client, message: Message):
|
async def start_(c: Client, message: Message):
|
||||||
BOT_NAME = me_bot.first_name
|
|
||||||
await message.reply_text(
|
await message.reply_text(
|
||||||
f"""✨ **Welcome {message.from_user.mention()} !**\n
|
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!**
|
💡 **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()
|
current_time = datetime.utcnow()
|
||||||
uptime_sec = (current_time - START_TIME).total_seconds()
|
uptime_sec = (current_time - START_TIME).total_seconds()
|
||||||
uptime = await _human_time_duration(int(uptime_sec))
|
uptime = await _human_time_duration(int(uptime_sec))
|
||||||
BOT_NAME = me_bot.first_name
|
|
||||||
|
|
||||||
keyboard = InlineKeyboardMarkup(
|
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(
|
await c.send_photo(
|
||||||
chat_id,
|
chat_id,
|
||||||
@ -192,15 +190,13 @@ async def new_chat(c: Client, m: Message):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
await add_served_chat(chat_id)
|
await add_served_chat(chat_id)
|
||||||
ass_uname = me_user.username
|
|
||||||
bot_id = me_bot.id
|
|
||||||
for member in m.new_chat_members:
|
for member in m.new_chat_members:
|
||||||
if chat_id in await blacklisted_chats():
|
if chat_id in await blacklisted_chats():
|
||||||
await m.reply(
|
await m.reply(
|
||||||
"❗️ This chat has blacklisted by sudo user and You're not allowed to use me in this chat."
|
"❗️ 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)
|
return await bot.leave_chat(chat_id)
|
||||||
if member.id == bot_id:
|
if member.id == me_bot.id:
|
||||||
return await m.reply(
|
return await m.reply(
|
||||||
"❤️ Thanks for adding me to the **Group** !\n\n"
|
"❤️ 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"
|
"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("💭 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