RubigramClient 1.6.0__tar.gz → 1.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of RubigramClient might be problematic. Click here for more details.
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/PKG-INFO +1 -1
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/RubigramClient.egg-info/PKG-INFO +1 -1
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/pyproject.toml +1 -1
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/rubigram/filters.py +6 -2
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/LICENSE +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/README.md +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/RubigramClient.egg-info/SOURCES.txt +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/RubigramClient.egg-info/dependency_links.txt +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/RubigramClient.egg-info/requires.txt +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/RubigramClient.egg-info/top_level.txt +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/rubigram/__init__.py +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/rubigram/client.py +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/rubigram/method.py +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/rubigram/models.py +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/rubigram/network.py +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/rubigram/state.py +0 -0
- {rubigramclient-1.6.0 → rubigramclient-1.6.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: RubigramClient
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.1
|
|
4
4
|
Summary: A simple and flexible Python library for building advanced Rubika bots with powerful message handling, inline buttons, and custom filters.
|
|
5
5
|
Author-email: Javad RZ <Javad.Py1385@gmail.com>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: RubigramClient
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.1
|
|
4
4
|
Summary: A simple and flexible Python library for building advanced Rubika bots with powerful message handling, inline buttons, and custom filters.
|
|
5
5
|
Author-email: Javad RZ <Javad.Py1385@gmail.com>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "RubigramClient"
|
|
3
|
-
version = "1.6.
|
|
3
|
+
version = "1.6.1"
|
|
4
4
|
description = "A simple and flexible Python library for building advanced Rubika bots with powerful message handling, inline buttons, and custom filters."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.7"
|
|
@@ -170,11 +170,15 @@ class chat(Filter):
|
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
class button(Filter):
|
|
173
|
-
def __init__(self, button_id: Union[str, list[str]]):
|
|
173
|
+
def __init__(self, button_id: Union[str, list[str]], prefix: str = ""):
|
|
174
174
|
self.button_id = button_id
|
|
175
|
+
self.prefix = prefix
|
|
175
176
|
super().__init__(self.filter)
|
|
176
177
|
|
|
177
178
|
async def filter(self, update: InlineMessage):
|
|
178
179
|
if isinstance(update, InlineMessage):
|
|
179
180
|
button_ids = self.button_id if isinstance(self.button_id, list) else [self.button_id]
|
|
180
|
-
|
|
181
|
+
for btn_id in button_ids:
|
|
182
|
+
if update.aux_data.button_id.startswith(self.prefix + btn_id):
|
|
183
|
+
return True
|
|
184
|
+
return False
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|