Rubka 6.5.2__tar.gz → 6.6.4__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 Rubka might be problematic. Click here for more details.
- {rubka-6.5.2 → rubka-6.6.4}/PKG-INFO +24 -10
- {rubka-6.5.2 → rubka-6.6.4}/README.md +7 -7
- {rubka-6.5.2 → rubka-6.6.4}/Rubka.egg-info/PKG-INFO +24 -10
- {rubka-6.5.2 → rubka-6.6.4}/Rubka.egg-info/SOURCES.txt +2 -0
- rubka-6.6.4/Rubka.egg-info/entry_points.txt +2 -0
- rubka-6.6.4/Rubka.egg-info/not-zip-safe +1 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/api.py +3 -1
- {rubka-6.5.2 → rubka-6.6.4}/rubka/asynco.py +102 -251
- {rubka-6.5.2 → rubka-6.6.4}/rubka/filters.py +34 -46
- {rubka-6.5.2 → rubka-6.6.4}/rubka/rubino.py +59 -8
- rubka-6.6.4/setup.py +66 -0
- rubka-6.5.2/setup.py +0 -43
- {rubka-6.5.2 → rubka-6.6.4}/Rubka.egg-info/dependency_links.txt +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/Rubka.egg-info/requires.txt +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/Rubka.egg-info/top_level.txt +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/client/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/client/client.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/crypto/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/crypto/crypto.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/enums.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/exceptions.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/methods/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/methods/methods.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/network/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/network/helper.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/network/network.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/network/socket.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/sessions/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/sessions/sessions.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/types/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/types/socket/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/types/socket/message.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/utils/__init__.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/utils/configs.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/adaptorrubka/utils/utils.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/button.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/config.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/context.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/decorators.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/exceptions.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/jobs.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/keyboards.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/keypad.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/logger.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/update.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/rubka/utils.py +0 -0
- {rubka-6.5.2 → rubka-6.6.4}/setup.cfg +0 -0
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Rubka
|
|
3
|
-
Version: 6.
|
|
4
|
-
Summary: A Python library for interacting with Rubika Bot API.
|
|
3
|
+
Version: 6.6.4
|
|
4
|
+
Summary: rubika A Python library for interacting with Rubika Bot API.
|
|
5
5
|
Home-page: https://github.com/Mahdy-Ahmadi/Rubka
|
|
6
|
-
Download-URL: https://github.com/Mahdy-Ahmadi/rubka/
|
|
6
|
+
Download-URL: https://github.com/Mahdy-Ahmadi/rubka/archive/refs/tags/v6.6.4.zip
|
|
7
7
|
Author: Mahdi Ahmadi
|
|
8
8
|
Author-email: mahdiahmadi.1208@gmail.com
|
|
9
9
|
Maintainer: Mahdi Ahmadi
|
|
10
10
|
Maintainer-email: mahdiahmadi.1208@gmail.com
|
|
11
|
+
License: MIT
|
|
12
|
+
Project-URL: Bug Tracker, https://t.me/Bprogrammer
|
|
13
|
+
Project-URL: Documentation, https://github.com/Mahdy-Ahmadi/rubka/blob/main/README.md
|
|
14
|
+
Project-URL: Source Code, https://github.com/Mahdy-Ahmadi/Rubka
|
|
15
|
+
Keywords: rubika bot api library chat messaging rubpy pyrubi rubigram
|
|
16
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
11
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
22
|
Classifier: License :: OSI Approved :: MIT License
|
|
13
23
|
Classifier: Operating System :: OS Independent
|
|
14
24
|
Classifier: Topic :: Communications :: Chat
|
|
15
25
|
Classifier: Topic :: Software Development :: Libraries
|
|
26
|
+
Classifier: Natural Language :: Persian
|
|
16
27
|
Requires-Python: >=3.6
|
|
17
28
|
Description-Content-Type: text/markdown
|
|
18
29
|
Requires-Dist: requests
|
|
@@ -31,8 +42,11 @@ Dynamic: description
|
|
|
31
42
|
Dynamic: description-content-type
|
|
32
43
|
Dynamic: download-url
|
|
33
44
|
Dynamic: home-page
|
|
45
|
+
Dynamic: keywords
|
|
46
|
+
Dynamic: license
|
|
34
47
|
Dynamic: maintainer
|
|
35
48
|
Dynamic: maintainer-email
|
|
49
|
+
Dynamic: project-url
|
|
36
50
|
Dynamic: requires-dist
|
|
37
51
|
Dynamic: requires-python
|
|
38
52
|
Dynamic: summary
|
|
@@ -62,16 +76,16 @@ If `importlib.metadata` is not available, it installs `importlib-metadata` autom
|
|
|
62
76
|
## 🚀 Getting Started
|
|
63
77
|
|
|
64
78
|
```python
|
|
65
|
-
from rubka import Robot
|
|
79
|
+
from rubka.asynco import Robot
|
|
66
80
|
from rubka.context import Message
|
|
67
|
-
|
|
81
|
+
import asyncio
|
|
68
82
|
bot = Robot(token="YOUR_TOKEN_HERE")
|
|
69
83
|
|
|
70
84
|
@bot.on_message(commands=["start"])
|
|
71
|
-
def start(bot: Robot, message: Message):
|
|
72
|
-
message.reply("سلام! خوش آمدید!")
|
|
85
|
+
async def start(bot: Robot, message: Message):
|
|
86
|
+
await message.reply("سلام! خوش آمدید!")
|
|
73
87
|
|
|
74
|
-
bot.run()
|
|
88
|
+
asyncio.run(bot.run())
|
|
75
89
|
```
|
|
76
90
|
|
|
77
91
|
---
|
|
@@ -82,8 +96,8 @@ You can handle incoming text messages using `@bot.on_message()`:
|
|
|
82
96
|
|
|
83
97
|
```python
|
|
84
98
|
@bot.on_message(commands=["hello"])
|
|
85
|
-
def greet(bot: Robot, message: Message):
|
|
86
|
-
|
|
99
|
+
async def greet(bot: Robot, message: Message):
|
|
100
|
+
await message.reply("سلام کاربر عزیز 👋")
|
|
87
101
|
```
|
|
88
102
|
|
|
89
103
|
You can also add filters.
|
|
@@ -23,16 +23,16 @@ If `importlib.metadata` is not available, it installs `importlib-metadata` autom
|
|
|
23
23
|
## 🚀 Getting Started
|
|
24
24
|
|
|
25
25
|
```python
|
|
26
|
-
from rubka import Robot
|
|
26
|
+
from rubka.asynco import Robot
|
|
27
27
|
from rubka.context import Message
|
|
28
|
-
|
|
28
|
+
import asyncio
|
|
29
29
|
bot = Robot(token="YOUR_TOKEN_HERE")
|
|
30
30
|
|
|
31
31
|
@bot.on_message(commands=["start"])
|
|
32
|
-
def start(bot: Robot, message: Message):
|
|
33
|
-
message.reply("سلام! خوش آمدید!")
|
|
32
|
+
async def start(bot: Robot, message: Message):
|
|
33
|
+
await message.reply("سلام! خوش آمدید!")
|
|
34
34
|
|
|
35
|
-
bot.run()
|
|
35
|
+
asyncio.run(bot.run())
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
---
|
|
@@ -43,8 +43,8 @@ You can handle incoming text messages using `@bot.on_message()`:
|
|
|
43
43
|
|
|
44
44
|
```python
|
|
45
45
|
@bot.on_message(commands=["hello"])
|
|
46
|
-
def greet(bot: Robot, message: Message):
|
|
47
|
-
|
|
46
|
+
async def greet(bot: Robot, message: Message):
|
|
47
|
+
await message.reply("سلام کاربر عزیز 👋")
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
You can also add filters.
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Rubka
|
|
3
|
-
Version: 6.
|
|
4
|
-
Summary: A Python library for interacting with Rubika Bot API.
|
|
3
|
+
Version: 6.6.4
|
|
4
|
+
Summary: rubika A Python library for interacting with Rubika Bot API.
|
|
5
5
|
Home-page: https://github.com/Mahdy-Ahmadi/Rubka
|
|
6
|
-
Download-URL: https://github.com/Mahdy-Ahmadi/rubka/
|
|
6
|
+
Download-URL: https://github.com/Mahdy-Ahmadi/rubka/archive/refs/tags/v6.6.4.zip
|
|
7
7
|
Author: Mahdi Ahmadi
|
|
8
8
|
Author-email: mahdiahmadi.1208@gmail.com
|
|
9
9
|
Maintainer: Mahdi Ahmadi
|
|
10
10
|
Maintainer-email: mahdiahmadi.1208@gmail.com
|
|
11
|
+
License: MIT
|
|
12
|
+
Project-URL: Bug Tracker, https://t.me/Bprogrammer
|
|
13
|
+
Project-URL: Documentation, https://github.com/Mahdy-Ahmadi/rubka/blob/main/README.md
|
|
14
|
+
Project-URL: Source Code, https://github.com/Mahdy-Ahmadi/Rubka
|
|
15
|
+
Keywords: rubika bot api library chat messaging rubpy pyrubi rubigram
|
|
16
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
11
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
22
|
Classifier: License :: OSI Approved :: MIT License
|
|
13
23
|
Classifier: Operating System :: OS Independent
|
|
14
24
|
Classifier: Topic :: Communications :: Chat
|
|
15
25
|
Classifier: Topic :: Software Development :: Libraries
|
|
26
|
+
Classifier: Natural Language :: Persian
|
|
16
27
|
Requires-Python: >=3.6
|
|
17
28
|
Description-Content-Type: text/markdown
|
|
18
29
|
Requires-Dist: requests
|
|
@@ -31,8 +42,11 @@ Dynamic: description
|
|
|
31
42
|
Dynamic: description-content-type
|
|
32
43
|
Dynamic: download-url
|
|
33
44
|
Dynamic: home-page
|
|
45
|
+
Dynamic: keywords
|
|
46
|
+
Dynamic: license
|
|
34
47
|
Dynamic: maintainer
|
|
35
48
|
Dynamic: maintainer-email
|
|
49
|
+
Dynamic: project-url
|
|
36
50
|
Dynamic: requires-dist
|
|
37
51
|
Dynamic: requires-python
|
|
38
52
|
Dynamic: summary
|
|
@@ -62,16 +76,16 @@ If `importlib.metadata` is not available, it installs `importlib-metadata` autom
|
|
|
62
76
|
## 🚀 Getting Started
|
|
63
77
|
|
|
64
78
|
```python
|
|
65
|
-
from rubka import Robot
|
|
79
|
+
from rubka.asynco import Robot
|
|
66
80
|
from rubka.context import Message
|
|
67
|
-
|
|
81
|
+
import asyncio
|
|
68
82
|
bot = Robot(token="YOUR_TOKEN_HERE")
|
|
69
83
|
|
|
70
84
|
@bot.on_message(commands=["start"])
|
|
71
|
-
def start(bot: Robot, message: Message):
|
|
72
|
-
message.reply("سلام! خوش آمدید!")
|
|
85
|
+
async def start(bot: Robot, message: Message):
|
|
86
|
+
await message.reply("سلام! خوش آمدید!")
|
|
73
87
|
|
|
74
|
-
bot.run()
|
|
88
|
+
asyncio.run(bot.run())
|
|
75
89
|
```
|
|
76
90
|
|
|
77
91
|
---
|
|
@@ -82,8 +96,8 @@ You can handle incoming text messages using `@bot.on_message()`:
|
|
|
82
96
|
|
|
83
97
|
```python
|
|
84
98
|
@bot.on_message(commands=["hello"])
|
|
85
|
-
def greet(bot: Robot, message: Message):
|
|
86
|
-
|
|
99
|
+
async def greet(bot: Robot, message: Message):
|
|
100
|
+
await message.reply("سلام کاربر عزیز 👋")
|
|
87
101
|
```
|
|
88
102
|
|
|
89
103
|
You can also add filters.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1669,9 +1669,11 @@ class Robot:
|
|
|
1669
1669
|
self,
|
|
1670
1670
|
chat_id: str,
|
|
1671
1671
|
message_id: str,
|
|
1672
|
-
inline_keypad: Dict[str, Any]
|
|
1672
|
+
inline_keypad: Dict[str, Any],
|
|
1673
|
+
text : str = None
|
|
1673
1674
|
) -> Dict[str, Any]:
|
|
1674
1675
|
"""Edit inline keypad of a message."""
|
|
1676
|
+
if text is not None:self._post("editMessageText", {"chat_id": chat_id,"message_id": message_id,"text": text})
|
|
1675
1677
|
return self._post("editMessageKeypad", {
|
|
1676
1678
|
"chat_id": chat_id,
|
|
1677
1679
|
"message_id": message_id,
|