RubigramClient 1.5.7__tar.gz → 1.5.8__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.

@@ -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
@@ -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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "RubigramClient"
3
- version = "1.5.7"
3
+ version = "1.5.8"
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"
@@ -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)
@@ -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:
File without changes
File without changes
File without changes