Rubka 7.1.1__tar.gz → 7.1.3__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-7.1.1 → rubka-7.1.3}/PKG-INFO +1 -1
- {rubka-7.1.1 → rubka-7.1.3}/Rubka.egg-info/PKG-INFO +1 -1
- {rubka-7.1.1 → rubka-7.1.3}/rubka/asynco.py +2 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/button.py +1 -1
- {rubka-7.1.1 → rubka-7.1.3}/rubka/rubino.py +30 -1
- {rubka-7.1.1 → rubka-7.1.3}/rubka/tv.py +8 -0
- {rubka-7.1.1 → rubka-7.1.3}/setup.py +1 -1
- {rubka-7.1.1 → rubka-7.1.3}/README.md +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/Rubka.egg-info/SOURCES.txt +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/Rubka.egg-info/dependency_links.txt +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/Rubka.egg-info/entry_points.txt +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/Rubka.egg-info/not-zip-safe +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/Rubka.egg-info/requires.txt +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/Rubka.egg-info/top_level.txt +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/client/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/client/client.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/crypto/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/crypto/crypto.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/enums.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/exceptions.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/methods/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/methods/methods.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/network/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/network/helper.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/network/network.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/network/socket.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/sessions/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/sessions/sessions.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/types/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/types/socket/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/types/socket/message.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/utils/__init__.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/utils/configs.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/adaptorrubka/utils/utils.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/api.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/config.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/context.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/decorators.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/exceptions.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/filters.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/helpers.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/jobs.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/keyboards.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/keypad.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/logger.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/update.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/rubka/utils.py +0 -0
- {rubka-7.1.1 → rubka-7.1.3}/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.3
|
|
4
4
|
Summary: rubika A Python library for interacting with Rubika Bot API.
|
|
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.3
|
|
4
4
|
Summary: rubika A Python library for interacting with Rubika Bot API.
|
|
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
|
|
@@ -8,6 +8,8 @@ from .rubino import Bot as Rubino
|
|
|
8
8
|
from . import filters
|
|
9
9
|
try:from .context import Message, InlineMessage
|
|
10
10
|
except (ImportError, ModuleNotFoundError):from context import Message, InlineMessage
|
|
11
|
+
try:from .button import ChatKeypadBuilder, InlineBuilder
|
|
12
|
+
except (ImportError, ModuleNotFoundError):from button import ChatKeypadBuilder, InlineBuilder
|
|
11
13
|
class FeatureNotAvailableError(Exception):
|
|
12
14
|
pass
|
|
13
15
|
|
|
@@ -426,8 +426,11 @@ def _req(term, results, lang, start, proxies, timeout):
|
|
|
426
426
|
import random
|
|
427
427
|
|
|
428
428
|
class Bot():
|
|
429
|
-
"""rubino class"""
|
|
429
|
+
"""rubino class Regester m.rubika.ir"""
|
|
430
430
|
def __init__(self,auth,platform="m.rubika.ir",lang_code="fa") -> None:
|
|
431
|
+
"""
|
|
432
|
+
regester m.rubika.ir
|
|
433
|
+
"""
|
|
431
434
|
self.auth=auth
|
|
432
435
|
self.platform=platform
|
|
433
436
|
self.lang_code=lang_code
|
|
@@ -891,6 +894,22 @@ class Bot():
|
|
|
891
894
|
"target_profile_id": target_profile_id,
|
|
892
895
|
"profile_id": profile_id
|
|
893
896
|
},methode="getProfileFollowers")
|
|
897
|
+
def search_Follower(self,username,profile_id,target_profile_id,limit=10,search_type="Follower"):
|
|
898
|
+
return self._reuests_post(data={
|
|
899
|
+
"limit": limit,
|
|
900
|
+
"profile_id": profile_id,
|
|
901
|
+
"search_type": limit,
|
|
902
|
+
"target_profile_id": target_profile_id,
|
|
903
|
+
"username": username
|
|
904
|
+
},methode="searchFollower")
|
|
905
|
+
def search_Following(self,username,profile_id,target_profile_id,limit=10,search_type="Following"):
|
|
906
|
+
return self._reuests_post(data={
|
|
907
|
+
"limit": limit,
|
|
908
|
+
"profile_id": profile_id,
|
|
909
|
+
"search_type": limit,
|
|
910
|
+
"target_profile_id": target_profile_id,
|
|
911
|
+
"username": username
|
|
912
|
+
},methode="searchFollower")
|
|
894
913
|
|
|
895
914
|
def get_Page_Following(self,target_profile_id:str,sort:str="FromMax",limit:int=50,equal:bool=False,profile_id:str=None):
|
|
896
915
|
return self._reuests_post(data={
|
|
@@ -925,6 +944,16 @@ class Bot():
|
|
|
925
944
|
"username": username,
|
|
926
945
|
"profile_id": profile_id
|
|
927
946
|
},methode="getProfileFollowers")
|
|
947
|
+
def get_Related_Explore_Post(self,post_id:str,track_id,post_profile_id:str,limit:int=50,start_id:bool=False,profile_id:str=None,target_profile_id=None,):
|
|
948
|
+
return self._reuests_post(data={
|
|
949
|
+
"limit": limit,
|
|
950
|
+
"post_id": post_id,
|
|
951
|
+
"post_profile_id": post_profile_id,
|
|
952
|
+
"start_id": start_id,
|
|
953
|
+
"target_profile_id": target_profile_id,
|
|
954
|
+
"track_id": track_id,
|
|
955
|
+
"profile_id": profile_id
|
|
956
|
+
},methode="getRelatedExplorePost")
|
|
928
957
|
|
|
929
958
|
def get_Highlight_StoryIds(self,highlight_id:str,profile_id:str,target_profile_id:str):
|
|
930
959
|
return self._reuests_post(data={
|
|
@@ -28,6 +28,8 @@ class TV:
|
|
|
28
28
|
- auth: توکن احراز هویت حساب کاربری
|
|
29
29
|
- proxy: پراکسی برای ارسال درخواستها (اختیاری)
|
|
30
30
|
- headers: هدرهای سفارشی برای ارسال درخواستها (اختیاری)
|
|
31
|
+
# نکته:
|
|
32
|
+
https://vod.rubika.ir/
|
|
31
33
|
"""
|
|
32
34
|
self.auth = auth
|
|
33
35
|
self.headers = headers if headers is not None else self.DEFAULT_HEADERS
|
|
@@ -97,6 +99,12 @@ class TV:
|
|
|
97
99
|
async def get_wish_list(self, start_id: Optional[str] = None):
|
|
98
100
|
return await self._request_post("getWishList", {"start_id": start_id})
|
|
99
101
|
|
|
102
|
+
async def get_Property_Types(self):
|
|
103
|
+
return await self._request_post("getPropertyTypes", {})
|
|
104
|
+
|
|
105
|
+
async def get_Listing(self, listing_id: Optional[str] = "home"):
|
|
106
|
+
return await self._request_post("getListing", {"listing_id": listing_id})
|
|
107
|
+
|
|
100
108
|
async def get_me(self):
|
|
101
109
|
return await self._request_post("getAccountInfo", {})
|
|
102
110
|
|
|
@@ -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.3',
|
|
17
17
|
description='rubika A Python library for interacting with Rubika Bot API.',
|
|
18
18
|
long_description=long_description,
|
|
19
19
|
long_description_content_type='text/markdown',
|
|
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
|