Rubka 7.1.13__tar.gz → 7.1.14__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.
- {rubka-7.1.13 → rubka-7.1.14}/PKG-INFO +1 -1
- {rubka-7.1.13 → rubka-7.1.14}/Rubka.egg-info/PKG-INFO +1 -1
- {rubka-7.1.13 → rubka-7.1.14}/rubka/asynco.py +10 -6
- {rubka-7.1.13 → rubka-7.1.14}/setup.py +1 -1
- {rubka-7.1.13 → rubka-7.1.14}/README.md +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/Rubka.egg-info/SOURCES.txt +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/Rubka.egg-info/dependency_links.txt +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/Rubka.egg-info/entry_points.txt +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/Rubka.egg-info/not-zip-safe +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/Rubka.egg-info/requires.txt +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/Rubka.egg-info/top_level.txt +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/client/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/client/client.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/crypto/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/crypto/crypto.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/enums.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/exceptions.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/methods/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/methods/methods.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/network/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/network/helper.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/network/network.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/network/socket.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/sessions/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/sessions/sessions.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/types/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/types/socket/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/types/socket/message.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/utils/__init__.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/utils/configs.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/adaptorrubka/utils/utils.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/api.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/button.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/config.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/context.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/decorators.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/exceptions.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/filters.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/helpers.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/jobs.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/keyboards.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/keypad.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/logger.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/metadata.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/rubino.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/tv.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/update.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/rubka/utils.py +0 -0
- {rubka-7.1.13 → rubka-7.1.14}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Rubka
|
|
3
|
-
Version: 7.1.
|
|
3
|
+
Version: 7.1.14
|
|
4
4
|
Summary: Rubika: A Python library for interacting with the Rubika Bot API. This library provides an easy-to-use interface to send messages, polls, stickers, media files, manage groups and channels, handle inline keyboards, and implement advanced bot features like subscription management, user authentication, and message handling. Ideal for developers looking to automate and extend their Rubika bots with Python.
|
|
5
5
|
Home-page: https://github.com/Mahdy-Ahmadi/Rubka
|
|
6
6
|
Download-URL: https://github.com/Mahdy-Ahmadi/rubka/archive/refs/tags/v6.6.4.zip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Rubka
|
|
3
|
-
Version: 7.1.
|
|
3
|
+
Version: 7.1.14
|
|
4
4
|
Summary: Rubika: A Python library for interacting with the Rubika Bot API. This library provides an easy-to-use interface to send messages, polls, stickers, media files, manage groups and channels, handle inline keyboards, and implement advanced bot features like subscription management, user authentication, and message handling. Ideal for developers looking to automate and extend their Rubika bots with Python.
|
|
5
5
|
Home-page: https://github.com/Mahdy-Ahmadi/Rubka
|
|
6
6
|
Download-URL: https://github.com/Mahdy-Ahmadi/rubka/archive/refs/tags/v6.6.4.zip
|
|
@@ -379,8 +379,11 @@ max_cache_size and max_msg_age help manage duplicate message processing efficien
|
|
|
379
379
|
async def get_me(self) -> Dict[str, Any]:
|
|
380
380
|
return await self._post("getMe", {})
|
|
381
381
|
async def geteToken(self):
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
try:
|
|
383
|
+
if (await self.get_me())['status'] != "OK":
|
|
384
|
+
raise InvalidTokenError("The provided bot token is invalid or expired.")
|
|
385
|
+
except Exception as e:
|
|
386
|
+
print(e)
|
|
384
387
|
from typing import Callable, Any, Optional, List
|
|
385
388
|
|
|
386
389
|
|
|
@@ -1764,11 +1767,12 @@ max_cache_size and max_msg_age help manage duplicate message processing efficien
|
|
|
1764
1767
|
|
|
1765
1768
|
|
|
1766
1769
|
_log("Auto-restart requested. You can call run(...) again as needed.", "warning")
|
|
1767
|
-
def run(self, sleep_time
|
|
1770
|
+
def run(self, sleep_time: float = 0.1, *args, **kwargs):
|
|
1768
1771
|
print("Connecting to the server...")
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
+
try:
|
|
1773
|
+
loop = asyncio.get_running_loop()
|
|
1774
|
+
return loop.create_task(self.run_progelry(sleep_time=sleep_time, *args, **kwargs))
|
|
1775
|
+
except RuntimeError:return asyncio.run(self.run_progelry(sleep_time=sleep_time, *args, **kwargs))
|
|
1772
1776
|
async def _delete_after_task(self, chat_id: str, message_id: str, delay: int):
|
|
1773
1777
|
try:
|
|
1774
1778
|
await asyncio.sleep(delay)
|
|
@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as f:
|
|
|
13
13
|
|
|
14
14
|
setup(
|
|
15
15
|
name='Rubka',
|
|
16
|
-
version='7.1.
|
|
16
|
+
version='7.1.14',
|
|
17
17
|
description=(
|
|
18
18
|
"Rubika: A Python library for interacting with the Rubika Bot API. "
|
|
19
19
|
"This library provides an easy-to-use interface to send messages, polls, "
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|