Ultroid - v0.0.4

ChangeLog - https://t.me/TheUltroid/26
This commit is contained in:
Aditya
2021-03-13 17:26:44 +05:30
committed by GitHub
parent a104e40539
commit cb317c5a72
56 changed files with 2800 additions and 631 deletions

View File

@@ -42,13 +42,21 @@ async def assistant(event):
async def ultroid(event):
if event.is_group:
return
name = event.sender.first_name
if event.sender.last_name:
name += f" {event.sender.last_name}"
await asst.send_message(
event.chat_id,
f"Hi {OWNER_NAME}. Please browse through the options",
get_string("ast_3").format(name),
buttons=[
[Button.inline("Sᴇᴛᴛɪɴɢs ⚙️", data="setter")],
[Button.inline("Sᴛᴀᴛs", data="stat")],
[Button.inline("ᴀᴅᴀsᴛ", data="bcast")],
[
Button.inline("Language 🌐", data="lang"),
Button.inline("Sᴇᴛᴛɪɴɢs ⚙️", data="setter"),
],
[
Button.inline("Sᴛᴀᴛs ✨", data="stat"),
Button.inline("ᴀᴅᴀsᴛ 📻", data="bcast"),
],
],
)
@@ -60,11 +68,16 @@ async def ultroid(event):
if event.is_group:
return
await event.edit(
f"Hi {OWNER_NAME}. Please browse through the options",
get_string("ast_3").format(OWNER_NAME),
buttons=[
[Button.inline("Sᴇᴛᴛɪɴɢs ⚙️", data="setter")],
[Button.inline("Sᴛᴀᴛs", data="stat")],
[Button.inline("ᴀᴅᴀsᴛ", data="bcast")],
[
Button.inline("Language 🌐", data="lang"),
Button.inline("Sᴇᴛᴛɪɴɢs ⚙️", data="setter"),
],
[
Button.inline("Sᴛᴀᴛs ✨", data="stat"),
Button.inline("ᴀᴅᴀsᴛ 📻", data="bcast"),
],
],
)