From 96c0095d87f9602b73c0a6d21532b737bd05066a Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 24 Jan 2022 04:59:18 +0700 Subject: [PATCH] fixes --- program/start.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/start.py b/program/start.py index e0b73ca..ecae89b 100644 --- a/program/start.py +++ b/program/start.py @@ -96,6 +96,7 @@ async def start_(client: Client, message: Message): command(["alive", f"alive@{BOT_USERNAME}"]) & filters.group & ~filters.edited ) async def alive(client: Client, message: Message): + chat_id = message.chat.id current_time = datetime.utcnow() uptime_sec = (current_time - START_TIME).total_seconds() uptime = await _human_time_duration(int(uptime_sec)) @@ -114,6 +115,7 @@ async def alive(client: Client, message: Message): alive = f"**Hello {message.from_user.mention()}, i'm {BOT_NAME}**\n\nšŸ§‘šŸ¼ā€šŸ’» My Master: [{ALIVE_NAME}](https://t.me/{OWNER_NAME})\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 message.send_photo( + chat_id, photo=f"{ALIVE_IMG}", caption=alive, reply_markup=keyboard,