Spaces:
Paused
Paused
teamx-cloner
commited on
Commit
·
7e0e53d
1
Parent(s):
bff4913
Update _inline.py
Browse files- plugins/_inline.py +7 -7
plugins/_inline.py
CHANGED
@@ -86,7 +86,7 @@ async def inline_alive(o):
|
|
86 |
)
|
87 |
|
88 |
|
89 |
-
@in_pattern("ultd", owner=
|
90 |
async def inline_handler(event):
|
91 |
z = []
|
92 |
for x in LIST.values():
|
@@ -129,7 +129,7 @@ async def _(event):
|
|
129 |
await event.answer([result])
|
130 |
|
131 |
|
132 |
-
@callback("ownr", owner=
|
133 |
async def setting(event):
|
134 |
z = []
|
135 |
for x in LIST.values():
|
@@ -160,7 +160,7 @@ async def setting(event):
|
|
160 |
_strings = {"Official": helps, "Addons": zhelps, "VCBot": get_string("inline_6")}
|
161 |
|
162 |
|
163 |
-
@callback(re.compile("uh_(.*)"), owner=
|
164 |
async def help_func(ult):
|
165 |
key, count = ult.data_match.group(1).decode("utf-8").split("_")
|
166 |
if key == "VCBot" and HELP.get("VCBot") is None:
|
@@ -174,7 +174,7 @@ async def help_func(ult):
|
|
174 |
await ult.edit(text, buttons=page_num(count, key), link_preview=False)
|
175 |
|
176 |
|
177 |
-
@callback(re.compile("uplugin_(.*)"), owner=
|
178 |
async def uptd_plugin(event):
|
179 |
key, file = event.data_match.group(1).decode("utf-8").split("_")
|
180 |
index = None
|
@@ -275,7 +275,7 @@ async def _(event):
|
|
275 |
await event.answer(pin, cache_time=0, alert=True)
|
276 |
|
277 |
|
278 |
-
@callback(data="inlone", owner=
|
279 |
async def _(e):
|
280 |
_InButtons = [
|
281 |
Button.switch_inline(_, query=InlinePlugin[_], same_peer=True)
|
@@ -292,7 +292,7 @@ async def _(e):
|
|
292 |
await e.edit(buttons=button, link_preview=False)
|
293 |
|
294 |
|
295 |
-
@callback(data="open", owner=
|
296 |
async def opner(event):
|
297 |
z = []
|
298 |
for x in LIST.values():
|
@@ -309,7 +309,7 @@ async def opner(event):
|
|
309 |
)
|
310 |
|
311 |
|
312 |
-
@callback(data="close", owner=
|
313 |
async def on_plug_in_callback_query_handler(event):
|
314 |
await event.delete()
|
315 |
|
|
|
86 |
)
|
87 |
|
88 |
|
89 |
+
@in_pattern("ultd", owner=False)
|
90 |
async def inline_handler(event):
|
91 |
z = []
|
92 |
for x in LIST.values():
|
|
|
129 |
await event.answer([result])
|
130 |
|
131 |
|
132 |
+
@callback("ownr", owner=False)
|
133 |
async def setting(event):
|
134 |
z = []
|
135 |
for x in LIST.values():
|
|
|
160 |
_strings = {"Official": helps, "Addons": zhelps, "VCBot": get_string("inline_6")}
|
161 |
|
162 |
|
163 |
+
@callback(re.compile("uh_(.*)"), owner=False)
|
164 |
async def help_func(ult):
|
165 |
key, count = ult.data_match.group(1).decode("utf-8").split("_")
|
166 |
if key == "VCBot" and HELP.get("VCBot") is None:
|
|
|
174 |
await ult.edit(text, buttons=page_num(count, key), link_preview=False)
|
175 |
|
176 |
|
177 |
+
@callback(re.compile("uplugin_(.*)"), owner=False)
|
178 |
async def uptd_plugin(event):
|
179 |
key, file = event.data_match.group(1).decode("utf-8").split("_")
|
180 |
index = None
|
|
|
275 |
await event.answer(pin, cache_time=0, alert=True)
|
276 |
|
277 |
|
278 |
+
@callback(data="inlone", owner=False)
|
279 |
async def _(e):
|
280 |
_InButtons = [
|
281 |
Button.switch_inline(_, query=InlinePlugin[_], same_peer=True)
|
|
|
292 |
await e.edit(buttons=button, link_preview=False)
|
293 |
|
294 |
|
295 |
+
@callback(data="open", owner=False)
|
296 |
async def opner(event):
|
297 |
z = []
|
298 |
for x in LIST.values():
|
|
|
309 |
)
|
310 |
|
311 |
|
312 |
+
@callback(data="close", owner=False)
|
313 |
async def on_plug_in_callback_query_handler(event):
|
314 |
await event.delete()
|
315 |
|