@@ -5,7 +5,6 @@
|
||||
# PLease read the GNU Affero General Public License in
|
||||
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
|
||||
|
||||
import os
|
||||
import random
|
||||
import re
|
||||
import time
|
||||
@@ -23,33 +22,13 @@ from . import *
|
||||
# ================================================#
|
||||
notmine = "This bot is for {}".format(OWNER_NAME)
|
||||
ULTROID_PIC = "https://telegra.ph/file/11245cacbffe92e5d5b14.jpg"
|
||||
helps = """
|
||||
[Uʟᴛʀᴏɪᴅ Sᴜᴘᴘᴏʀᴛ](t.me/ultroidsupport)
|
||||
|
||||
**Hᴇʟᴘ Mᴇɴᴜ Oғ {}.
|
||||
|
||||
Pʟᴜɢɪɴs ~ {}**
|
||||
"""
|
||||
helps = get_string("inline_1")
|
||||
|
||||
add_ons = udB.get("ADDONS")
|
||||
if add_ons:
|
||||
zhelps = """
|
||||
[Uʟᴛʀᴏɪᴅ Sᴜᴘᴘᴏʀᴛ](t.me/ultroidsupport)
|
||||
|
||||
**Hᴇʟᴘ Mᴇɴᴜ Oғ {}.
|
||||
|
||||
Aᴅᴅᴏɴs ~ {}**
|
||||
"""
|
||||
zhelps = get_string("inline_2")
|
||||
else:
|
||||
zhelps = """
|
||||
[Uʟᴛʀᴏɪᴅ Sᴜᴘᴘᴏʀᴛ](t.me/ultroidsupport)
|
||||
|
||||
**Hᴇʟᴘ Mᴇɴᴜ Oғ {}.
|
||||
|
||||
Aᴅᴅᴏɴs ~ {}
|
||||
|
||||
Gᴏ Aɴᴅ Aᴅᴅ ADDONS Vᴀʀ Wɪᴛʜ Vᴀʟᴜᴇ Tʀᴜᴇ**
|
||||
"""
|
||||
zhelps = get_string("inline_3")
|
||||
# ============================================#
|
||||
|
||||
|
||||
@@ -59,15 +38,7 @@ async def e(o):
|
||||
if len(o.text) == 0:
|
||||
b = o.builder
|
||||
uptime = grt((time.time() - start_time))
|
||||
ALIVEMSG = """
|
||||
**The Ultroid Userbot...**\n
|
||||
✵ **Owner** - `{}`
|
||||
✵ **Ultroid** - `{}`
|
||||
✵ **UpTime** - `{}`
|
||||
✵ **Python** - `{}`
|
||||
✵ **Telethon** - `{}`
|
||||
✵ **Branch** - `{}`
|
||||
""".format(
|
||||
ALIVEMSG = get_string("alive_1").format(
|
||||
OWNER_NAME,
|
||||
ultroid_version,
|
||||
uptime,
|
||||
@@ -119,7 +90,9 @@ if Var.BOT_USERNAME is not None and asst is not None:
|
||||
description="Help Menu - UserBot | Telethon ",
|
||||
url="https://t.me/TheUltroid",
|
||||
thumb=InputWebDocument(ULTROID_PIC, 0, "image/jpeg", []),
|
||||
text=f"** Bᴏᴛ Oғ {OWNER_NAME}\n\nMᴀɪɴ Mᴇɴᴜ\n\nPʟᴜɢɪɴs ~ {len(PLUGINS) - 4}\nAᴅᴅᴏɴs ~ {len(ADDONS)}\nTᴏᴛᴀʟ Cᴏᴍᴍᴀɴᴅs ~ {cmd}**",
|
||||
text=get_string("inline_4").format(
|
||||
OWNER_NAME, len(PLUGINS) - 5, len(ADDONS), cmd
|
||||
),
|
||||
buttons=[
|
||||
[
|
||||
Button.inline("• Pʟᴜɢɪɴs", data="hrrrr"),
|
||||
@@ -201,42 +174,43 @@ if Var.BOT_USERNAME is not None and asst is not None:
|
||||
"Pʟᴀʏ Sᴛᴏʀᴇ Aᴘᴘs",
|
||||
query="app telegram",
|
||||
same_peer=True,
|
||||
)
|
||||
],
|
||||
[
|
||||
),
|
||||
Button.switch_inline(
|
||||
"Mᴏᴅᴅᴇᴅ Aᴘᴘs",
|
||||
query="mods minecraft",
|
||||
same_peer=True,
|
||||
)
|
||||
),
|
||||
],
|
||||
[
|
||||
Button.switch_inline(
|
||||
"Sᴇᴀʀᴄʜ Oɴ Gᴏᴏɢʟᴇ",
|
||||
query="go TeamUltroid",
|
||||
same_peer=True,
|
||||
)
|
||||
],
|
||||
[
|
||||
),
|
||||
Button.switch_inline(
|
||||
"Sᴇᴀʀᴄʜ Oɴ Yᴀʜᴏᴏ",
|
||||
query="yahoo TeamUltroid",
|
||||
same_peer=True,
|
||||
)
|
||||
),
|
||||
],
|
||||
[
|
||||
Button.switch_inline(
|
||||
"YᴏᴜTᴜʙᴇ Dᴏᴡɴʟᴏᴀᴅᴇʀ",
|
||||
query="Ed Sheeran Perfect",
|
||||
query="yt Ed Sheeran Perfect",
|
||||
same_peer=True,
|
||||
)
|
||||
],
|
||||
[
|
||||
Button.switch_inline(
|
||||
"Rᴇx Tᴇsᴛᴇʀ",
|
||||
query="rex",
|
||||
same_peer=True,
|
||||
),
|
||||
Button.switch_inline(
|
||||
"CʟɪᴘAʀᴛ Sᴇᴀʀᴄʜ",
|
||||
query="clipart frog",
|
||||
same_peer=True,
|
||||
)
|
||||
),
|
||||
],
|
||||
[
|
||||
Button.inline(
|
||||
@@ -250,7 +224,7 @@ if Var.BOT_USERNAME is not None and asst is not None:
|
||||
@callback("hrrrr")
|
||||
@owner
|
||||
async def on_plug_in_callback_query_handler(event):
|
||||
xhelps = helps.format(OWNER_NAME, len(PLUGINS) - 4)
|
||||
xhelps = helps.format(OWNER_NAME, len(PLUGINS) - 5)
|
||||
buttons = paginate_help(0, PLUGINS, "helpme")
|
||||
await event.edit(f"{xhelps}", buttons=buttons, link_preview=False)
|
||||
|
||||
@@ -263,7 +237,7 @@ if Var.BOT_USERNAME is not None and asst is not None:
|
||||
await event.edit(f"{halp}", buttons=buttons, link_preview=False)
|
||||
else:
|
||||
await event.answer(
|
||||
"• Iɴsᴛᴀʟʟ A Pʟᴜɢɪɴ Mᴀɴᴜᴀʟʟʏ Oʀ Aᴅᴅ Vᴀʀ ADDONS Wɪᴛʜ Vᴀʟᴜᴇ True",
|
||||
f"• Tʏᴘᴇ `{HNDLR}setredis ADDONS True`\n Tᴏ ɢᴇᴛ ᴀᴅᴅᴏɴs ᴘʟᴜɢɪɴs",
|
||||
cache_time=0,
|
||||
alert=True,
|
||||
)
|
||||
@@ -320,7 +294,7 @@ if Var.BOT_USERNAME is not None and asst is not None:
|
||||
@callback("back")
|
||||
@owner
|
||||
async def backr(event):
|
||||
xhelps = helps.format(OWNER_NAME, len(PLUGINS) - 4)
|
||||
xhelps = helps.format(OWNER_NAME, len(PLUGINS) - 5)
|
||||
current_page_number = int(upage)
|
||||
buttons = paginate_help(current_page_number, PLUGINS, "helpme")
|
||||
await event.edit(f"{xhelps}", buttons=buttons, link_preview=False)
|
||||
@@ -363,7 +337,9 @@ if Var.BOT_USERNAME is not None and asst is not None:
|
||||
z.append(y)
|
||||
cmd = len(z) + 10
|
||||
await event.edit(
|
||||
f"** Bᴏᴛ Oғ {OWNER_NAME}\n\nMᴀɪɴ Mᴇɴᴜ\n\nPʟᴜɢɪɴs ~ {len(PLUGINS) - 4}\nAᴅᴅᴏɴs ~ {len(ADDONS)}\nTᴏᴛᴀʟ Cᴏᴍᴍᴀɴᴅs ~ {cmd}**",
|
||||
get_string("inline_4").format(
|
||||
OWNER_NAME, len(PLUGINS) - 5, len(ADDONS), cmd
|
||||
),
|
||||
buttons=buttons,
|
||||
link_preview=False,
|
||||
)
|
||||
@@ -372,7 +348,7 @@ if Var.BOT_USERNAME is not None and asst is not None:
|
||||
@owner
|
||||
async def on_plug_in_callback_query_handler(event):
|
||||
await event.edit(
|
||||
"**Mᴇɴᴜ Hᴀs Bᴇᴇɴ Cʟᴏsᴇᴅ**",
|
||||
get_string("inline_5"),
|
||||
buttons=Button.inline("Oᴘᴇɴ Mᴀɪɴ Mᴇɴᴜ Aɢᴀɪɴ", data="open"),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user