Spaces:
Paused
Paused
iamgojoof6eyes
commited on
Commit
·
fc66cc3
1
Parent(s):
467592d
Looks good
Browse files- Powers/utils/kbhelpers.py +3 -6
- poetry.lock +11 -0
- requirements.txt +2 -1
Powers/utils/kbhelpers.py
CHANGED
|
@@ -1,9 +1,5 @@
|
|
| 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 = []
|
|
@@ -11,10 +7,11 @@ def ikb(rows=None):
|
|
| 11 |
for row in rows:
|
| 12 |
line = []
|
| 13 |
for button in row:
|
| 14 |
-
button = btn(*button)
|
| 15 |
line.append(button)
|
| 16 |
lines.append(line)
|
| 17 |
return InlineKeyboardMarkup(inline_keyboard=lines)
|
| 18 |
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
| 1 |
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
def ikb(rows=None):
|
| 4 |
if rows is None:
|
| 5 |
rows = []
|
|
|
|
| 7 |
for row in rows:
|
| 8 |
line = []
|
| 9 |
for button in row:
|
| 10 |
+
button = btn(*button)
|
| 11 |
line.append(button)
|
| 12 |
lines.append(line)
|
| 13 |
return InlineKeyboardMarkup(inline_keyboard=lines)
|
| 14 |
|
| 15 |
|
| 16 |
+
def btn(text, value, type="callback_data"):
|
| 17 |
+
return InlineKeyboardButton(text, **{type: value})
|
poetry.lock
CHANGED
|
@@ -441,6 +441,14 @@ category = "dev"
|
|
| 441 |
optional = false
|
| 442 |
python-versions = "*"
|
| 443 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 444 |
[[package]]
|
| 445 |
name = "pylint"
|
| 446 |
version = "2.13.4"
|
|
@@ -1053,6 +1061,9 @@ pyclean = [
|
|
| 1053 |
{file = "pyclean-2.2.0-py3-none-any.whl", hash = "sha256:5f99597b76249b71b86d8e9aff1e69dfdc0b1976d14ce366e07b28dc6f7a8ee6"},
|
| 1054 |
{file = "pyclean-2.2.0.tar.gz", hash = "sha256:48f1801804fa2f04f2c64348da8bd61797fc9722e1120c470d5cc67a205843c7"},
|
| 1055 |
]
|
|
|
|
|
|
|
|
|
|
| 1056 |
pylint = [
|
| 1057 |
{file = "pylint-2.13.4-py3-none-any.whl", hash = "sha256:8672cf7441b81410f5de7defdf56e2d559c956fd0579652f2e0a0a35bea2d546"},
|
| 1058 |
{file = "pylint-2.13.4.tar.gz", hash = "sha256:7cc6d0c4f61dff440f9ed8b657f4ecd615dcfe35345953eb7b1dc74afe901d7a"},
|
|
|
|
| 441 |
optional = false
|
| 442 |
python-versions = "*"
|
| 443 |
|
| 444 |
+
[[package]]
|
| 445 |
+
name = "pykeyboard"
|
| 446 |
+
version = "0.1.5"
|
| 447 |
+
description = "Inline keyboard for python"
|
| 448 |
+
category = "main"
|
| 449 |
+
optional = false
|
| 450 |
+
python-version = "3.6"
|
| 451 |
+
|
| 452 |
[[package]]
|
| 453 |
name = "pylint"
|
| 454 |
version = "2.13.4"
|
|
|
|
| 1061 |
{file = "pyclean-2.2.0-py3-none-any.whl", hash = "sha256:5f99597b76249b71b86d8e9aff1e69dfdc0b1976d14ce366e07b28dc6f7a8ee6"},
|
| 1062 |
{file = "pyclean-2.2.0.tar.gz", hash = "sha256:48f1801804fa2f04f2c64348da8bd61797fc9722e1120c470d5cc67a205843c7"},
|
| 1063 |
]
|
| 1064 |
+
pykeyboard = [
|
| 1065 |
+
{file = "pykeyboard-0.1.5.tar.gz", hash = "sha256:b77be4341129ae73e363d46fe1f3243132fc04932f4ad2f7f8234d0971de4de4"}
|
| 1066 |
+
]
|
| 1067 |
pylint = [
|
| 1068 |
{file = "pylint-2.13.4-py3-none-any.whl", hash = "sha256:8672cf7441b81410f5de7defdf56e2d559c956fd0579652f2e0a0a35bea2d546"},
|
| 1069 |
{file = "pylint-2.13.4.tar.gz", hash = "sha256:7cc6d0c4f61dff440f9ed8b657f4ecd615dcfe35345953eb7b1dc74afe901d7a"},
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
aiofiles==0.8.0; python_full_version >= "3.7"
|
| 2 |
-
aiohttp==3.8.1; python_version >= "3.8.1 and python_version , "4.0"
|
| 3 |
anyio==3.5.0; python_full_version >= "3.6.2" and python_version >= "3.6"
|
| 4 |
asyncio==3.4.3
|
| 5 |
beautifulsoup4==4.10.0; python_full_version > "3.0.0"
|
|
@@ -19,6 +19,7 @@ idna==3.3; python_version >= "3.6" and (python_version >= "3.5" and python_full_
|
|
| 19 |
lxml==4.8.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
| 20 |
prettyconf==2.2.1
|
| 21 |
pyaes==1.6.1; python_version >= "3.6" and python_version < "4.0"
|
|
|
|
| 22 |
pymongo==3.12.3
|
| 23 |
pyrogram==2.0.19; python_version >= "3.7"
|
| 24 |
pysocks==1.7.1; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.6" and python_version < "4.0" and python_full_version >= "3.4.0"
|
|
|
|
| 1 |
aiofiles==0.8.0; python_full_version >= "3.7"
|
| 2 |
+
aiohttp==3.8.1; python_version >= "3.8.1" and python_version , < "4.0"
|
| 3 |
anyio==3.5.0; python_full_version >= "3.6.2" and python_version >= "3.6"
|
| 4 |
asyncio==3.4.3
|
| 5 |
beautifulsoup4==4.10.0; python_full_version > "3.0.0"
|
|
|
|
| 19 |
lxml==4.8.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
| 20 |
prettyconf==2.2.1
|
| 21 |
pyaes==1.6.1; python_version >= "3.6" and python_version < "4.0"
|
| 22 |
+
pykeyboard==0.1.5; python_full_version >="3.6"
|
| 23 |
pymongo==3.12.3
|
| 24 |
pyrogram==2.0.19; python_version >= "3.7"
|
| 25 |
pysocks==1.7.1; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.6" and python_version < "4.0" and python_full_version >= "3.4.0"
|