RubigramClient 1.5.7__py3-none-any.whl → 1.5.8__py3-none-any.whl

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.

rubigram/filters.py CHANGED
@@ -11,12 +11,12 @@ class Filter:
11
11
  async def __call__(self, update: Union[Update, InlineMessage]):
12
12
  return await self.func(update)
13
13
 
14
- async def __and__(self, other: "Filter"):
14
+ def __and__(self, other: "Filter"):
15
15
  async def filter(update):
16
16
  return await self(update) and await other(update)
17
17
  return Filter(filter)
18
18
 
19
- async def __or__(self, other: "Filter"):
19
+ def __or__(self, other: "Filter"):
20
20
  async def filter(update):
21
21
  return await self(update) or await other(update)
22
22
  return Filter(filter)
rubigram/network.py CHANGED
@@ -40,7 +40,7 @@ class Network:
40
40
 
41
41
  async def RequestUploadFile(self, upload_url: str, file: str, name: str):
42
42
  if isinstance(file, str):
43
- if re.match(r"^https?://", file):
43
+ if re.match(r"^https://", file):
44
44
  file = await self.ContentFile(file)
45
45
  elif os.path.isfile(file):
46
46
  async with aiofiles.open(file, "rb") as f:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RubigramClient
3
- Version: 1.5.7
3
+ Version: 1.5.8
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
@@ -0,0 +1,12 @@
1
+ rubigram/__init__.py,sha256=IWNCN7oDaIBzaP54cGiA-4Sa31ehGBlqj0SuqhNQVgU,162
2
+ rubigram/client.py,sha256=ET5L9Lzj0qbUO4IYZ647q_sXrLeFpLqH-ySU2zUISN0,4466
3
+ rubigram/filters.py,sha256=121DraaTVvrIbq6BaXqt-Z7wJK8fHwEn5tVOCE3Ztjw,6418
4
+ rubigram/method.py,sha256=VfhxOoYQmNZjvAodXWqnSIin1vpc6478bj5_3IAxZP0,10609
5
+ rubigram/models.py,sha256=42WK68VPKqgKCy14jrRyoP_XRsZ-04S5rUbdpO_UfaQ,13831
6
+ rubigram/network.py,sha256=84-2Grde0GUDOpia6O-7oJNlupBw30ga5VE4sve31dY,2361
7
+ rubigram/state.py,sha256=jpr0ovuBk9Cnvj5JsPbE2tgv0KrEkrrv-_THHTxlYYw,4065
8
+ rubigramclient-1.5.8.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ rubigramclient-1.5.8.dist-info/METADATA,sha256=VQU5liQYuqEWRMgf7dERcwVnPhLPBPsPbe44za4o7Gw,2280
10
+ rubigramclient-1.5.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ rubigramclient-1.5.8.dist-info/top_level.txt,sha256=Mhg5HfkL6rLec5sI4ClGmwoqYUANAZUz8sVa1sT_cas,9
12
+ rubigramclient-1.5.8.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- rubigram/__init__.py,sha256=IWNCN7oDaIBzaP54cGiA-4Sa31ehGBlqj0SuqhNQVgU,162
2
- rubigram/client.py,sha256=ET5L9Lzj0qbUO4IYZ647q_sXrLeFpLqH-ySU2zUISN0,4466
3
- rubigram/filters.py,sha256=T1As4tVr4EsZAun4wJBf3tgpQ-1lbuF8QwRsLryFKOo,6430
4
- rubigram/method.py,sha256=VfhxOoYQmNZjvAodXWqnSIin1vpc6478bj5_3IAxZP0,10609
5
- rubigram/models.py,sha256=42WK68VPKqgKCy14jrRyoP_XRsZ-04S5rUbdpO_UfaQ,13831
6
- rubigram/network.py,sha256=6_kLFg9Uw_MHwxoDff53HYtPD-PSTqqWC3qtgbZbmfY,2362
7
- rubigram/state.py,sha256=jpr0ovuBk9Cnvj5JsPbE2tgv0KrEkrrv-_THHTxlYYw,4065
8
- rubigramclient-1.5.7.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- rubigramclient-1.5.7.dist-info/METADATA,sha256=CfJ5mlhnpH32vh37EKhldGekqQVoIPGVhv2p7VR57e8,2280
10
- rubigramclient-1.5.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- rubigramclient-1.5.7.dist-info/top_level.txt,sha256=Mhg5HfkL6rLec5sI4ClGmwoqYUANAZUz8sVa1sT_cas,9
12
- rubigramclient-1.5.7.dist-info/RECORD,,