Spaces:
Sleeping
Sleeping
Hêllẞøy
commited on
Commit
·
f216914
1
Parent(s):
5eeedfd
Update kbhelpers.py
Browse files
Powers/utils/kbhelpers.py
CHANGED
@@ -8,7 +8,8 @@ def ikb(rows=None):
|
|
8 |
for row in rows:
|
9 |
line = []
|
10 |
for button in row:
|
11 |
-
|
|
|
12 |
line.append(button)
|
13 |
lines.append(line)
|
14 |
return InlineKeyboardMarkup(inline_keyboard=lines)
|
|
|
8 |
for row in rows:
|
9 |
line = []
|
10 |
for button in row:
|
11 |
+
btn_text = button.split(".")[1].upper()
|
12 |
+
button = btn(btn_text, button) # InlineKeyboardButton
|
13 |
line.append(button)
|
14 |
lines.append(line)
|
15 |
return InlineKeyboardMarkup(inline_keyboard=lines)
|