commit
6307d002fd
@ -68,7 +68,7 @@ async def cbguides(_, query: CallbackQuery):
|
|||||||
3.) Invite @{ASSISTANT_NAME} to your group or type /userbotjoin to invite her (unfortunately the userbot will joined by itself when you type `/play (song name)` or `/vplay (song name)`).
|
3.) Invite @{ASSISTANT_NAME} to your group or type /userbotjoin to invite her (unfortunately the userbot will joined by itself when you type `/play (song name)` or `/vplay (song name)`).
|
||||||
4.) Turn on/Start the video chat first before start to play video/music.
|
4.) Turn on/Start the video chat first before start to play video/music.
|
||||||
|
|
||||||
`--- END : EVERYTHING HAS BEEN SETUP ---`
|
`- END, EVERYTHING HAS BEEN SETUP -`
|
||||||
|
|
||||||
📌 If the userbot not joined to video chat, make sure if the video chat already turned on and the userbot in the chat.
|
📌 If the userbot not joined to video chat, make sure if the video chat already turned on and the userbot in the chat.
|
||||||
|
|
||||||
|
@ -95,7 +95,8 @@ async def start_(client: Client, message: Message):
|
|||||||
@Client.on_message(
|
@Client.on_message(
|
||||||
command(["alive", f"alive@{BOT_USERNAME}"]) & filters.group & ~filters.edited
|
command(["alive", f"alive@{BOT_USERNAME}"]) & filters.group & ~filters.edited
|
||||||
)
|
)
|
||||||
async def alive(client: Client, message: Message):
|
async def alive(c: Client, message: Message):
|
||||||
|
chat_id = message.chat.id
|
||||||
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))
|
||||||
@ -111,9 +112,10 @@ 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**"
|
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(
|
await c.send_photo(
|
||||||
|
chat_id,
|
||||||
photo=f"{ALIVE_IMG}",
|
photo=f"{ALIVE_IMG}",
|
||||||
caption=alive,
|
caption=alive,
|
||||||
reply_markup=keyboard,
|
reply_markup=keyboard,
|
||||||
|
Loading…
Reference in New Issue
Block a user