RubigramClient 1.5.2__tar.gz → 1.5.3__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.2
3
+ Version: 1.5.3
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.2
3
+ Version: 1.5.3
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.2"
3
+ version = "1.5.3"
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"
@@ -195,6 +195,7 @@ class Method(Network):
195
195
  chat_id: str,
196
196
  file: str,
197
197
  file_name: str,
198
+ text: str = None,
198
199
  type: Literal["File", "Image", "Voice", "Music", "Gif", "Video"] = "File",
199
200
  chat_keypad: Keypad = None,
200
201
  inline_keypad: Keypad = None,
@@ -206,6 +207,7 @@ class Method(Network):
206
207
  data = {
207
208
  "chat_id": chat_id,
208
209
  "file_id": file_id,
210
+ "text": text,
209
211
  "chat_keypad": chat_keypad.to_dict() if chat_keypad else None,
210
212
  "inline_keypad": inline_keypad.to_dict() if inline_keypad else None,
211
213
  "disable_notification": disable_notification,
@@ -49,7 +49,8 @@ class Network:
49
49
  else:
50
50
  raise Exception("file not found : {}".format(file))
51
51
 
52
- form = FormData().add_field("file", filename=name, content_type="application/octet-stream")
52
+ form = FormData()
53
+ form.add_field("file", file, filename=name, content_type="application/octet-stream")
53
54
  await self.start()
54
55
  async with self.session.post(upload_url, data=form) as response:
55
56
  response.raise_for_status()
File without changes
File without changes
File without changes