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

@@ -29,18 +29,18 @@ async def ult(ult):
output += "\n© @TheUltroid"
await eor(ult, output)
elif plug in CMD_HELP:
kk = f"Plugin Name-{plug}\n\n✘ Commands Available-\n\n"
kk = f"Plugin Name-{plug}\n\n✘ Commands Available -\n\n"
kk += str(CMD_HELP[plug])
await eor(ult, kk)
else:
try:
x = f"Plugin Name-{plug}\n\n✘ Commands Available-\n\n"
x = f"Plugin Name-{plug}\n\n✘ Commands Available -\n\n"
for d in LIST[plug]:
x += HNDLR + d
x += "\n"
await eor(ult, x)
except BaseException:
await eod(ult, f"`{plug}` is not a valid plugin!", time=5)
await eod(ult, get_string("help_1").format(plug), time=5)
except BaseException:
await eor(ult, "Error 🤔 occured.")
else:
@@ -49,18 +49,14 @@ async def ult(ult):
except rep:
return await eor(
ult,
"`The bot did not respond to the inline query.\nConsider using {}restart`".format(
HNDLR
),
get_string("help_2").format(HNDLR),
)
except dis:
return await eor(
ult, "`Please turn on inline mode for your bot from` @Botfather."
)
return await eor(ult, get_string("help_3"))
except bmi:
return await eor(
ult,
f"Hey, \nYou are on Bot Mode. \nBot Mode Users Cant Get Help Directly ... \nInstead Copy Paste The Following in The Chat and Click The Pop Up \n\n `@{tgbot} ultd`",
get_string("help_4").format(tgbot),
)
await results[0].click(ult.chat_id, reply_to=ult.reply_to_msg_id, hide_via=True)
await ult.delete()