Spaces:
Sleeping
Sleeping
Hêllẞøy
commited on
Commit
·
9708422
1
Parent(s):
68742ae
Update kbhelpers.py
Browse files
Powers/utils/kbhelpers.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
2 |
|
3 |
|
4 |
-
def ikb(rows=None):
|
5 |
if rows is None:
|
6 |
rows = []
|
7 |
lines = []
|
@@ -12,6 +12,9 @@ def ikb(rows=None):
|
|
12 |
button = btn(btn_text, button) # InlineKeyboardButton
|
13 |
line.append(button)
|
14 |
lines.append(line)
|
|
|
|
|
|
|
15 |
return InlineKeyboardMarkup(inline_keyboard=lines)
|
16 |
|
17 |
|
|
|
1 |
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
2 |
|
3 |
|
4 |
+
def ikb(rows=None, back=False):
|
5 |
if rows is None:
|
6 |
rows = []
|
7 |
lines = []
|
|
|
12 |
button = btn(btn_text, button) # InlineKeyboardButton
|
13 |
line.append(button)
|
14 |
lines.append(line)
|
15 |
+
if back:
|
16 |
+
back_btn = [(btn("Back", "start_back"))]
|
17 |
+
lines.append(back_btn)
|
18 |
return InlineKeyboardMarkup(inline_keyboard=lines)
|
19 |
|
20 |
|