diff --git a/program/start.py b/program/start.py index 683b076..264a325 100644 --- a/program/start.py +++ b/program/start.py @@ -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}") ] ] )