PyRubikaBotAPI 0.0.1__py3-none-any.whl → 1.0.1__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.
- {pyrubikabotapi-0.0.1.dist-info → pyrubikabotapi-1.0.1.dist-info}/METADATA +6 -15
- pyrubikabotapi-1.0.1.dist-info/RECORD +12 -0
- {pyrubikabotapi-0.0.1.dist-info → pyrubikabotapi-1.0.1.dist-info}/WHEEL +1 -1
- rubibot/__init__.py +374 -266
- rubibot/exceptions.py +14 -0
- rubibot/metadata.py +71 -0
- rubibot/parse.py +134 -0
- rubibot/rubika_api.py +259 -0
- rubibot/types.py +227 -116
- rubibot/updates.py +338 -0
- pyrubikabotapi-0.0.1.dist-info/RECORD +0 -8
- rubibot/helper.py +0 -109
- {pyrubikabotapi-0.0.1.dist-info → pyrubikabotapi-1.0.1.dist-info}/LICENCE +0 -0
- {pyrubikabotapi-0.0.1.dist-info → pyrubikabotapi-1.0.1.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyRubikaBotAPI
|
|
3
|
-
Version:
|
|
4
|
-
Summary: A Python library
|
|
5
|
-
Home-page: https://github.com/alireza-sadeghian/
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: A Python library with a simple and familiar interface for working with the official Rubika bot API
|
|
5
|
+
Home-page: https://github.com/alireza-sadeghian/PyRubikaBotAPI
|
|
6
6
|
Author: Alireza Sadeghian
|
|
7
7
|
Author-email: alireza.amid110@gmail.com
|
|
8
8
|
License: MIT
|
|
@@ -16,7 +16,7 @@ Requires-Dist: requests
|
|
|
16
16
|
|
|
17
17
|
# PyRubikaBotAPI
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
کتابخانه قدرتمند و آشنا برای ساخت ربات های تخصصی روبیکا
|
|
20
20
|
|
|
21
21
|
## نصب
|
|
22
22
|
```bash
|
|
@@ -38,17 +38,8 @@ def start(message):
|
|
|
38
38
|
bot.polling()
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
@bot.message_handler(content_types=['file'])
|
|
44
|
-
def handle(msg):
|
|
45
|
-
file_id = msg.file.id
|
|
46
|
-
file_url = bot.get_file(file_id)
|
|
47
|
-
file = bot.download_file(file_url)
|
|
48
|
-
with open('file.format', 'wb') as f
|
|
49
|
-
f.write(file)
|
|
50
|
-
# استفاده از فایل ارسالی
|
|
51
|
-
```
|
|
41
|
+
برای استفاده دقیقتر حتما مستندات رو مطالعه بفرمایید و یا برای دریافت سورس کد ها
|
|
42
|
+
و مثال ها به کانال روبیکای ما سر بزنید
|
|
52
43
|
|
|
53
44
|
## مستندات:
|
|
54
45
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
rubibot/__init__.py,sha256=brh_qfPanBsFaTHIjtcX9GWJ7DgF3GujRy4scn4dqww,38036
|
|
2
|
+
rubibot/exceptions.py,sha256=68MnHRgJWi4asxeTfH2rrHeRvBI49LR8KkKxYEAYcxg,250
|
|
3
|
+
rubibot/metadata.py,sha256=eNUuFnRVQ_Ve8dh-VGMfcX0wxR0d06DiceE-sj1g_oQ,1413
|
|
4
|
+
rubibot/parse.py,sha256=5F-jq0l1mc0q8SHl3iby8dv9N2r4WTf-FzlPesrdzHQ,4837
|
|
5
|
+
rubibot/rubika_api.py,sha256=SgdvirBEXuocjKsFsvtdhXwK5JO-8t4jORZrGZPDiOY,9343
|
|
6
|
+
rubibot/types.py,sha256=mnLTbYaD727YkMDcRWssIa326TlpAL4hc5JbVHb7uko,10483
|
|
7
|
+
rubibot/updates.py,sha256=eXUkppIBhN-LDo0GS8VzkLi7t8U6v0kbb-Squy1BkZA,12366
|
|
8
|
+
pyrubikabotapi-1.0.1.dist-info/LICENCE,sha256=mds18XAwr8xSo4pIhwMfB9spNkvrm5KKmLl_KIKQky4,1095
|
|
9
|
+
pyrubikabotapi-1.0.1.dist-info/METADATA,sha256=Df-N0guE_VdzbGPKTtQZHpYxpz4WN8b-wccUHfUuS4o,1362
|
|
10
|
+
pyrubikabotapi-1.0.1.dist-info/WHEEL,sha256=BNRMDyzLkkcmlv0J8ppDQkk2VED33SesJDynr9ED1gc,91
|
|
11
|
+
pyrubikabotapi-1.0.1.dist-info/top_level.txt,sha256=TAhaSYH8WLX-dab28vY3_Wif-mrUw1pmS_RJOFaiogE,8
|
|
12
|
+
pyrubikabotapi-1.0.1.dist-info/RECORD,,
|