Spaces:
Paused
Paused
xditya
commited on
Commit
·
9064539
1
Parent(s):
626dc36
back buttons for assistant
Browse files- assistant/api_setter.py +4 -2
- assistant/customvars.py +2 -0
- assistant/othervars.py +4 -2
- assistant/start.py +24 -8
assistant/api_setter.py
CHANGED
@@ -15,8 +15,10 @@ from . import *
|
|
15 |
async def apiset(event):
|
16 |
await event.edit(
|
17 |
"Choose which API you want to set.",
|
18 |
-
buttons=[
|
19 |
-
|
|
|
|
|
20 |
|
21 |
|
22 |
# remove.bg api
|
|
|
15 |
async def apiset(event):
|
16 |
await event.edit(
|
17 |
"Choose which API you want to set.",
|
18 |
+
buttons=[
|
19 |
+
[Button.inline("Remove.bg", data="rmbg")],
|
20 |
+
[custom.Button.inline("« Back", data="setter")]
|
21 |
+
])
|
22 |
|
23 |
|
24 |
# remove.bg api
|
assistant/customvars.py
CHANGED
@@ -27,6 +27,7 @@ async def alvcs(event):
|
|
27 |
[Button.inline("Alive Text", data="alvtx")],
|
28 |
[Button.inline("Alive Media", data="alvmed")],
|
29 |
[Button.inline("Delete Alive Media", data="delmed")],
|
|
|
30 |
],
|
31 |
)
|
32 |
|
@@ -103,6 +104,7 @@ async def alvcs(event):
|
|
103 |
[Button.inline("PM Text", data="pmtxt")],
|
104 |
[Button.inline("Pm Media", data="pmmed")],
|
105 |
[Button.inline("Delete PM Media", data="delpmmed")],
|
|
|
106 |
],
|
107 |
)
|
108 |
|
|
|
27 |
[Button.inline("Alive Text", data="alvtx")],
|
28 |
[Button.inline("Alive Media", data="alvmed")],
|
29 |
[Button.inline("Delete Alive Media", data="delmed")],
|
30 |
+
[Button.inline("« Back", data="allcstms")]
|
31 |
],
|
32 |
)
|
33 |
|
|
|
104 |
[Button.inline("PM Text", data="pmtxt")],
|
105 |
[Button.inline("Pm Media", data="pmmed")],
|
106 |
[Button.inline("Delete PM Media", data="delpmmed")],
|
107 |
+
[Button.inline("« Back", data="allcstms")]
|
108 |
],
|
109 |
)
|
110 |
|
assistant/othervars.py
CHANGED
@@ -19,8 +19,8 @@ async def otvaar(event):
|
|
19 |
[Button.inline("Tag Logger", data="taglog")],
|
20 |
[Button.inline("PM Permit", data="pmset")],
|
21 |
[Button.inline("SuperFban", data="sfban")],
|
22 |
-
|
23 |
-
|
24 |
|
25 |
|
26 |
@callback("taglog")
|
@@ -52,6 +52,7 @@ async def pmset(event):
|
|
52 |
buttons=[
|
53 |
[Button.inline("Turn PMPermit On", data="pmon")],
|
54 |
[Button.inline("Turn PMPermit Off", data="pmoff")],
|
|
|
55 |
],
|
56 |
)
|
57 |
|
@@ -80,6 +81,7 @@ async def sfban(event):
|
|
80 |
buttons=[
|
81 |
[Button.inline("FBan Group", data="sfgrp")],
|
82 |
[Button.inline("Exclude Feds", data="sfexf")],
|
|
|
83 |
],
|
84 |
)
|
85 |
|
|
|
19 |
[Button.inline("Tag Logger", data="taglog")],
|
20 |
[Button.inline("PM Permit", data="pmset")],
|
21 |
[Button.inline("SuperFban", data="sfban")],
|
22 |
+
[Button.inline("« Back", data="setter")]
|
23 |
+
])
|
24 |
|
25 |
|
26 |
@callback("taglog")
|
|
|
52 |
buttons=[
|
53 |
[Button.inline("Turn PMPermit On", data="pmon")],
|
54 |
[Button.inline("Turn PMPermit Off", data="pmoff")],
|
55 |
+
[Button.inline("« Back", data="otvars")]
|
56 |
],
|
57 |
)
|
58 |
|
|
|
81 |
buttons=[
|
82 |
[Button.inline("FBan Group", data="sfgrp")],
|
83 |
[Button.inline("Exclude Feds", data="sfexf")],
|
84 |
+
[Button.inline("« Back", data="otvars")]
|
85 |
],
|
86 |
)
|
87 |
|
assistant/start.py
CHANGED
@@ -46,12 +46,26 @@ async def ultroid(event):
|
|
46 |
event.chat_id,
|
47 |
f"Hi {OWNER_NAME}. Please browse through the options",
|
48 |
buttons=[
|
49 |
-
[
|
50 |
-
[
|
51 |
-
[
|
52 |
],
|
53 |
)
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
@callback("stat")
|
57 |
@owner
|
@@ -106,9 +120,10 @@ async def setting(event):
|
|
106 |
await event.edit(
|
107 |
"Choose from the below options -",
|
108 |
buttons=[
|
109 |
-
[
|
110 |
-
[
|
111 |
-
[
|
|
|
112 |
],
|
113 |
)
|
114 |
|
@@ -118,6 +133,7 @@ async def all(event):
|
|
118 |
await event.edit(
|
119 |
"All Customisable Stuff.",
|
120 |
buttons=[
|
121 |
-
[
|
122 |
-
[
|
|
|
123 |
])
|
|
|
46 |
event.chat_id,
|
47 |
f"Hi {OWNER_NAME}. Please browse through the options",
|
48 |
buttons=[
|
49 |
+
[Button.inline("Settings ⚙️", data="setter")],
|
50 |
+
[Button.inline("Stats", data="stat")],
|
51 |
+
[Button.inline("Broadcast", data="bcast")],
|
52 |
],
|
53 |
)
|
54 |
|
55 |
+
# aah, repeat the codes..
|
56 |
+
@callback("mainmenu")
|
57 |
+
@owner
|
58 |
+
async def ultroid(event):
|
59 |
+
if event.is_group:
|
60 |
+
return
|
61 |
+
await event.edit(
|
62 |
+
f"Hi {OWNER_NAME}. Please browse through the options",
|
63 |
+
buttons=[
|
64 |
+
[Button.inline("Settings ⚙️", data="setter")],
|
65 |
+
[Button.inline("Stats", data="stat")],
|
66 |
+
[Button.inline("Broadcast", data="bcast")],
|
67 |
+
],
|
68 |
+
)
|
69 |
|
70 |
@callback("stat")
|
71 |
@owner
|
|
|
120 |
await event.edit(
|
121 |
"Choose from the below options -",
|
122 |
buttons=[
|
123 |
+
[Button.inline("Customisations", data="allcstms")],
|
124 |
+
[Button.inline("API Keys", data="apiset")],
|
125 |
+
[Button.inline("Other Vars.", data="otvars")],
|
126 |
+
[Button.inline("« Back", data="mainmenu")]
|
127 |
],
|
128 |
)
|
129 |
|
|
|
133 |
await event.edit(
|
134 |
"All Customisable Stuff.",
|
135 |
buttons=[
|
136 |
+
[Button.inline("Alive", data="alvcstm")],
|
137 |
+
[Button.inline("PM Permit", data="pmcstm")],
|
138 |
+
[Button.inline("« Back", data="setter")]
|
139 |
])
|