Spaces:
Paused
Paused
iamgojoof6eyes
commited on
Commit
·
18c643a
1
Parent(s):
a50dbb2
Minor changes
Browse files
Powers/utils/kbhelpers.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
| 2 |
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
def ikb(rows=None):
|
| 5 |
if rows is None:
|
| 6 |
rows = []
|
|
@@ -14,5 +17,4 @@ def ikb(rows=None):
|
|
| 14 |
return InlineKeyboardMarkup(inline_keyboard=lines)
|
| 15 |
|
| 16 |
|
| 17 |
-
|
| 18 |
-
return InlineKeyboardButton(text, **{type: value})
|
|
|
|
| 1 |
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
| 2 |
|
| 3 |
|
| 4 |
+
def btn(text, value, type="callback_data"):
|
| 5 |
+
return InlineKeyboardButton(text, **{type: value})
|
| 6 |
+
|
| 7 |
def ikb(rows=None):
|
| 8 |
if rows is None:
|
| 9 |
rows = []
|
|
|
|
| 17 |
return InlineKeyboardMarkup(inline_keyboard=lines)
|
| 18 |
|
| 19 |
|
| 20 |
+
|
|
|