RubigramClient 1.5.2__py3-none-any.whl → 1.5.3__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/method.py +2 -0
- rubigram/network.py +2 -1
- {rubigramclient-1.5.2.dist-info → rubigramclient-1.5.3.dist-info}/METADATA +1 -1
- rubigramclient-1.5.3.dist-info/RECORD +12 -0
- rubigramclient-1.5.2.dist-info/RECORD +0 -12
- {rubigramclient-1.5.2.dist-info → rubigramclient-1.5.3.dist-info}/WHEEL +0 -0
- {rubigramclient-1.5.2.dist-info → rubigramclient-1.5.3.dist-info}/licenses/LICENSE +0 -0
- {rubigramclient-1.5.2.dist-info → rubigramclient-1.5.3.dist-info}/top_level.txt +0 -0
rubigram/method.py
CHANGED
|
@@ -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,
|
rubigram/network.py
CHANGED
|
@@ -49,7 +49,8 @@ class Network:
|
|
|
49
49
|
else:
|
|
50
50
|
raise Exception("file not found : {}".format(file))
|
|
51
51
|
|
|
52
|
-
form = FormData()
|
|
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()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: RubigramClient
|
|
3
|
-
Version: 1.5.
|
|
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
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
rubigram/__init__.py,sha256=IWNCN7oDaIBzaP54cGiA-4Sa31ehGBlqj0SuqhNQVgU,162
|
|
2
|
+
rubigram/client.py,sha256=GDdlGzCeSwBAzEP3Truat1g2il5l3nPWbmFw2hRhYoc,6511
|
|
3
|
+
rubigram/filters.py,sha256=EyrcKbEIwqDwf18lucusUoZYP0KIkaKkZc7PnaA0GcU,6218
|
|
4
|
+
rubigram/method.py,sha256=B9uDuczkMyO0Zi_N54ZEPzO7btqbOXweqdn1Zgxl-lc,10427
|
|
5
|
+
rubigram/models.py,sha256=QJ-nzd0HNhxCwhCOC6_fuBmJBG2M6Cg9oWH9sIFRNdA,13603
|
|
6
|
+
rubigram/network.py,sha256=ErrGwtKpMHN1Dq4IvPHSrMOcDN-TFjUk1CfU-2EuPAY,2364
|
|
7
|
+
rubigram/state.py,sha256=oRk5xXuO4k-cK0qRI2Rz2mdoivJkANlo20zQAkdqFSY,4081
|
|
8
|
+
rubigramclient-1.5.3.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
rubigramclient-1.5.3.dist-info/METADATA,sha256=1Lc5Fghx4Y_Jda8r5RQAgAjjYFr2YNdZfS_OeKeeWaI,2320
|
|
10
|
+
rubigramclient-1.5.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
rubigramclient-1.5.3.dist-info/top_level.txt,sha256=Mhg5HfkL6rLec5sI4ClGmwoqYUANAZUz8sVa1sT_cas,9
|
|
12
|
+
rubigramclient-1.5.3.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
rubigram/__init__.py,sha256=IWNCN7oDaIBzaP54cGiA-4Sa31ehGBlqj0SuqhNQVgU,162
|
|
2
|
-
rubigram/client.py,sha256=GDdlGzCeSwBAzEP3Truat1g2il5l3nPWbmFw2hRhYoc,6511
|
|
3
|
-
rubigram/filters.py,sha256=EyrcKbEIwqDwf18lucusUoZYP0KIkaKkZc7PnaA0GcU,6218
|
|
4
|
-
rubigram/method.py,sha256=SGnC_vzcMiLfyNzDACTwjSG8igRHljNsoCg5Foiolfo,10373
|
|
5
|
-
rubigram/models.py,sha256=QJ-nzd0HNhxCwhCOC6_fuBmJBG2M6Cg9oWH9sIFRNdA,13603
|
|
6
|
-
rubigram/network.py,sha256=Dy2M4NSdN2iaNP0wwlmVcS408Omq6QhiWUWExrp9Ers,2340
|
|
7
|
-
rubigram/state.py,sha256=oRk5xXuO4k-cK0qRI2Rz2mdoivJkANlo20zQAkdqFSY,4081
|
|
8
|
-
rubigramclient-1.5.2.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
rubigramclient-1.5.2.dist-info/METADATA,sha256=SUlcMcedY9bs9uOV6qPfTRKIIFqxswfbfpyETDv4jAI,2320
|
|
10
|
-
rubigramclient-1.5.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
-
rubigramclient-1.5.2.dist-info/top_level.txt,sha256=Mhg5HfkL6rLec5sI4ClGmwoqYUANAZUz8sVa1sT_cas,9
|
|
12
|
-
rubigramclient-1.5.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|