Spaces:
Paused
Paused
Drag
commited on
Commit
Β·
b63dc43
1
Parent(s):
60428a8
Update inlinestuff.py
Browse files- assistant/inlinestuff.py +21 -27
assistant/inlinestuff.py
CHANGED
@@ -102,37 +102,31 @@ apis = [
|
|
102 |
|
103 |
@in_pattern(owner=False, func=lambda x: not x.text)
|
104 |
async def help(e):
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
[
|
111 |
-
Button.inline("Admin", data="hlp_admin"),
|
112 |
-
Button.inline("Asupan", data="hlp_asupan")
|
113 |
-
],
|
114 |
-
[
|
115 |
-
Button.inline("Auto Broadcast", data="hlp_autobc"),
|
116 |
-
Button.inline("Blacklist", data="hlp_blacklist")
|
117 |
-
],
|
118 |
-
[
|
119 |
-
Button.inline("Convert", data="hlp_convert"),
|
120 |
-
Button.inline("Copy", data="hlp_copy")
|
121 |
-
],
|
122 |
-
[
|
123 |
-
Button.inline("Β«", data="hlp_prev"),
|
124 |
-
Button.inline("Β»", data="hlp_next")
|
125 |
-
]
|
126 |
-
]
|
127 |
-
|
128 |
res = [
|
129 |
await e.builder.article(
|
130 |
-
|
131 |
-
text=
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
)
|
134 |
]
|
135 |
-
await e.answer(
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
@callback("ping", owner=False)
|
138 |
async def _(event):
|
|
|
102 |
|
103 |
@in_pattern(owner=False, func=lambda x: not x.text)
|
104 |
async def help(e):
|
105 |
+
TLINK = inline_pic() or "https://telegra.ph/file/cad7038fe82e47f79c609.jpg"
|
106 |
+
MSG = "ββββββββββββββ’.β°.β’βββββββββββββ"
|
107 |
+
WEB0 = wb(
|
108 |
+
"https://telegra.ph/file/8d7b534e34e13316a7dd2.jpg", 0, "image/jpg", []
|
109 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
res = [
|
111 |
await e.builder.article(
|
112 |
+
type="photo",
|
113 |
+
text=MSG,
|
114 |
+
include_media=True,
|
115 |
+
buttons=PING_ALIVE,
|
116 |
+
title="Inline",
|
117 |
+
description="Userbot",
|
118 |
+
url=TLINK,
|
119 |
+
thumb=WEB0,
|
120 |
+
content=wb(TLINK, 0, "image/jpg", []),
|
121 |
)
|
122 |
]
|
123 |
+
await e.answer(
|
124 |
+
res,
|
125 |
+
private=True,
|
126 |
+
cache_time=300,
|
127 |
+
switch_pm="xteam-userbot",
|
128 |
+
switch_pm_param="start",
|
129 |
+
)
|
130 |
|
131 |
@callback("ping", owner=False)
|
132 |
async def _(event):
|