PyRubikaBotAPI 0.0.1__tar.gz → 1.0.1__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.
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/PKG-INFO +6 -15
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/PyRubikaBotAPI.egg-info/PKG-INFO +6 -15
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/PyRubikaBotAPI.egg-info/SOURCES.txt +6 -2
- pyrubikabotapi-1.0.1/README.md +31 -0
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/rubibot/__init__.py +374 -266
- pyrubikabotapi-1.0.1/rubibot/exceptions.py +14 -0
- pyrubikabotapi-1.0.1/rubibot/metadata.py +71 -0
- pyrubikabotapi-1.0.1/rubibot/parse.py +134 -0
- pyrubikabotapi-1.0.1/rubibot/rubika_api.py +259 -0
- pyrubikabotapi-1.0.1/rubibot/types.py +353 -0
- pyrubikabotapi-1.0.1/rubibot/updates.py +338 -0
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/setup.py +3 -3
- pyrubikabotapi-0.0.1/README.md +0 -40
- pyrubikabotapi-0.0.1/rubibot/helper.py +0 -109
- pyrubikabotapi-0.0.1/rubibot/types.py +0 -242
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/LICENCE +0 -0
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/PyRubikaBotAPI.egg-info/dependency_links.txt +0 -0
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/PyRubikaBotAPI.egg-info/requires.txt +0 -0
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/PyRubikaBotAPI.egg-info/top_level.txt +0 -0
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/pyproject.toml +0 -0
- {pyrubikabotapi-0.0.1 → pyrubikabotapi-1.0.1}/setup.cfg +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
|
|
|
@@ -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
|
|
|
@@ -8,5 +8,9 @@ PyRubikaBotAPI.egg-info/dependency_links.txt
|
|
|
8
8
|
PyRubikaBotAPI.egg-info/requires.txt
|
|
9
9
|
PyRubikaBotAPI.egg-info/top_level.txt
|
|
10
10
|
rubibot/__init__.py
|
|
11
|
-
rubibot/
|
|
12
|
-
rubibot/
|
|
11
|
+
rubibot/exceptions.py
|
|
12
|
+
rubibot/metadata.py
|
|
13
|
+
rubibot/parse.py
|
|
14
|
+
rubibot/rubika_api.py
|
|
15
|
+
rubibot/types.py
|
|
16
|
+
rubibot/updates.py
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# PyRubikaBotAPI
|
|
2
|
+
|
|
3
|
+
کتابخانه قدرتمند و آشنا برای ساخت ربات های تخصصی روبیکا
|
|
4
|
+
|
|
5
|
+
## نصب
|
|
6
|
+
```bash
|
|
7
|
+
pip install PyRubikaBotAPI
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## مثال ساده
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from rubibot import RubiBot
|
|
15
|
+
|
|
16
|
+
bot = RubiBot("YOUR_TOKEN")
|
|
17
|
+
|
|
18
|
+
@bot.message_handler(commands=["start"])
|
|
19
|
+
def start(message):
|
|
20
|
+
bot.send_message(message.chat_id, "سلام! خوش آمدید!")
|
|
21
|
+
|
|
22
|
+
bot.polling()
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
برای استفاده دقیقتر حتما مستندات رو مطالعه بفرمایید و یا برای دریافت سورس کد ها
|
|
26
|
+
و مثال ها به کانال روبیکای ما سر بزنید
|
|
27
|
+
|
|
28
|
+
## مستندات:
|
|
29
|
+
|
|
30
|
+
Rubika: https://rubika.ir/pyrubikabotapi
|
|
31
|
+
GitHub: https://github.com/alireza-sadeghian/PyRubikaBotAPI
|