Rubka 6.6.2__tar.gz → 6.6.5__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.

Files changed (49) hide show
  1. {rubka-6.6.2 → rubka-6.6.5}/PKG-INFO +24 -10
  2. {rubka-6.6.2 → rubka-6.6.5}/README.md +7 -7
  3. {rubka-6.6.2 → rubka-6.6.5}/Rubka.egg-info/PKG-INFO +24 -10
  4. {rubka-6.6.2 → rubka-6.6.5}/Rubka.egg-info/SOURCES.txt +2 -0
  5. rubka-6.6.5/Rubka.egg-info/entry_points.txt +2 -0
  6. rubka-6.6.5/Rubka.egg-info/not-zip-safe +1 -0
  7. {rubka-6.6.2 → rubka-6.6.5}/rubka/__init__.py +1 -0
  8. {rubka-6.6.2 → rubka-6.6.5}/rubka/asynco.py +48 -47
  9. {rubka-6.6.2 → rubka-6.6.5}/rubka/rubino.py +59 -8
  10. rubka-6.6.5/setup.py +66 -0
  11. rubka-6.6.2/setup.py +0 -43
  12. {rubka-6.6.2 → rubka-6.6.5}/Rubka.egg-info/dependency_links.txt +0 -0
  13. {rubka-6.6.2 → rubka-6.6.5}/Rubka.egg-info/requires.txt +0 -0
  14. {rubka-6.6.2 → rubka-6.6.5}/Rubka.egg-info/top_level.txt +0 -0
  15. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/__init__.py +0 -0
  16. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/client/__init__.py +0 -0
  17. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/client/client.py +0 -0
  18. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/crypto/__init__.py +0 -0
  19. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/crypto/crypto.py +0 -0
  20. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/enums.py +0 -0
  21. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/exceptions.py +0 -0
  22. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/methods/__init__.py +0 -0
  23. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/methods/methods.py +0 -0
  24. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/network/__init__.py +0 -0
  25. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/network/helper.py +0 -0
  26. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/network/network.py +0 -0
  27. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/network/socket.py +0 -0
  28. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/sessions/__init__.py +0 -0
  29. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/sessions/sessions.py +0 -0
  30. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/types/__init__.py +0 -0
  31. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/types/socket/__init__.py +0 -0
  32. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/types/socket/message.py +0 -0
  33. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/utils/__init__.py +0 -0
  34. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/utils/configs.py +0 -0
  35. {rubka-6.6.2 → rubka-6.6.5}/rubka/adaptorrubka/utils/utils.py +0 -0
  36. {rubka-6.6.2 → rubka-6.6.5}/rubka/api.py +0 -0
  37. {rubka-6.6.2 → rubka-6.6.5}/rubka/button.py +0 -0
  38. {rubka-6.6.2 → rubka-6.6.5}/rubka/config.py +0 -0
  39. {rubka-6.6.2 → rubka-6.6.5}/rubka/context.py +0 -0
  40. {rubka-6.6.2 → rubka-6.6.5}/rubka/decorators.py +0 -0
  41. {rubka-6.6.2 → rubka-6.6.5}/rubka/exceptions.py +0 -0
  42. {rubka-6.6.2 → rubka-6.6.5}/rubka/filters.py +0 -0
  43. {rubka-6.6.2 → rubka-6.6.5}/rubka/jobs.py +0 -0
  44. {rubka-6.6.2 → rubka-6.6.5}/rubka/keyboards.py +0 -0
  45. {rubka-6.6.2 → rubka-6.6.5}/rubka/keypad.py +0 -0
  46. {rubka-6.6.2 → rubka-6.6.5}/rubka/logger.py +0 -0
  47. {rubka-6.6.2 → rubka-6.6.5}/rubka/update.py +0 -0
  48. {rubka-6.6.2 → rubka-6.6.5}/rubka/utils.py +0 -0
  49. {rubka-6.6.2 → rubka-6.6.5}/setup.cfg +0 -0
@@ -1,18 +1,29 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Rubka
3
- Version: 6.6.2
4
- Summary: A Python library for interacting with Rubika Bot API.
3
+ Version: 6.6.5
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/blob/main/project_library.zip
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
- message.reply("سلام کاربر عزیز 👋")
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
- message.reply("سلام کاربر عزیز 👋")
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.6.2
4
- Summary: A Python library for interacting with Rubika Bot API.
3
+ Version: 6.6.5
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/blob/main/project_library.zip
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
- message.reply("سلام کاربر عزیز 👋")
99
+ async def greet(bot: Robot, message: Message):
100
+ await message.reply("سلام کاربر عزیز 👋")
87
101
  ```
88
102
 
89
103
  You can also add filters.
@@ -3,6 +3,8 @@ setup.py
3
3
  Rubka.egg-info/PKG-INFO
4
4
  Rubka.egg-info/SOURCES.txt
5
5
  Rubka.egg-info/dependency_links.txt
6
+ Rubka.egg-info/entry_points.txt
7
+ Rubka.egg-info/not-zip-safe
6
8
  Rubka.egg-info/requires.txt
7
9
  Rubka.egg-info/top_level.txt
8
10
  rubka/__init__.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ rubka = rubka.__main__:main
@@ -0,0 +1 @@
1
+
@@ -1,6 +1,7 @@
1
1
  from .api import Robot
2
2
  from .rubino import Bot
3
3
  from .exceptions import APIRequestError
4
+ from .rubino import Bot as rubino
4
5
 
5
6
  __all__ = [
6
7
  "Robot",
@@ -1,8 +1,9 @@
1
1
  import asyncio,aiohttp,aiofiles,time,datetime,json,tempfile,os,sys,subprocess,mimetypes
2
- from typing import List, Optional, Dict, Any, Literal, Callable, Union
2
+ from typing import List, Optional, Dict, Any, Literal, Callable, Union,Set
3
3
  from .exceptions import APIRequestError
4
4
  from .adaptorrubka import Client as Client_get
5
5
  from .logger import logger
6
+ from .rubino import Bot as Rubino
6
7
  from . import filters
7
8
  try:from .context import Message, InlineMessage
8
9
  except (ImportError, ModuleNotFoundError):from context import Message, InlineMessage
@@ -787,52 +788,52 @@ class Robot:
787
788
 
788
789
 
789
790
  async def run(
790
- self,
791
- debug: bool = False,
792
- sleep_time: float = 0.2,
793
- webhook_timeout: int = 20,
794
- update_limit: int = 100,
795
- retry_delay: float = 5.0,
796
- stop_on_error: bool = False,
797
- max_errors: int = 0,
798
- auto_restart: bool = False,
799
- max_runtime: float | None = None,
800
- loop_forever: bool = True,
801
- allowed_update_types: list[str] | None = None,
802
- ignore_duplicate_messages: bool = True,
803
- skip_inline_queries: bool = False,
804
- skip_channel_posts: bool = False,
805
- skip_service_messages: bool = False,
806
- skip_edited_messages: bool = False,
807
- skip_bot_messages: bool = False,
808
- log_file: str | None = None,
809
- log_level: str = "info",
810
- print_exceptions: bool = True,
811
- error_handler=None,
812
- shutdown_hook=None,
813
- save_unprocessed_updates: bool = False,
814
- log_to_console: bool = True,
815
- rate_limit: float | None = None,
816
- max_message_size: int | None = None,
817
- ignore_users: set[str] | None = None,
818
- ignore_groups: set[str] | None = None,
819
- require_auth_token: bool = False,
820
- only_private_chats: bool = False,
821
- only_groups: bool = False,
822
- require_admin_rights: bool = False,
823
- custom_update_fetcher=None,
824
- custom_update_processor=None,
825
- process_in_background: bool = False,
826
- max_queue_size: int = 1000,
827
- thread_workers: int = 3,
828
- message_filter=None,
829
- pause_on_idle: bool = False,
830
- max_concurrent_tasks: int | None = None,
831
- metrics_enabled: bool = False,
832
- metrics_handler=None,
833
- notify_on_error: bool = False,
834
- notification_handler=None,
835
- watchdog_timeout: float | None = None,
791
+ self,
792
+ debug: bool = False,
793
+ sleep_time: float = 0.2,
794
+ webhook_timeout: int = 20,
795
+ update_limit: int = 100,
796
+ retry_delay: float = 5.0,
797
+ stop_on_error: bool = False,
798
+ max_errors: int = 0,
799
+ auto_restart: bool = False,
800
+ max_runtime: Optional[float] = None,
801
+ loop_forever: bool = True,
802
+ allowed_update_types: Optional[List[str]] = None,
803
+ ignore_duplicate_messages: bool = True,
804
+ skip_inline_queries: bool = False,
805
+ skip_channel_posts: bool = False,
806
+ skip_service_messages: bool = False,
807
+ skip_edited_messages: bool = False,
808
+ skip_bot_messages: bool = False,
809
+ log_file: Optional[str] = None,
810
+ log_level: str = "info",
811
+ print_exceptions: bool = True,
812
+ error_handler: Optional[Callable[[Exception], Any]] = None,
813
+ shutdown_hook: Optional[Callable[[], Any]] = None,
814
+ save_unprocessed_updates: bool = False,
815
+ log_to_console: bool = True,
816
+ rate_limit: Optional[float] = None,
817
+ max_message_size: Optional[int] = None,
818
+ ignore_users: Optional[Set[str]] = None,
819
+ ignore_groups: Optional[Set[str]] = None,
820
+ require_auth_token: bool = False,
821
+ only_private_chats: bool = False,
822
+ only_groups: bool = False,
823
+ require_admin_rights: bool = False,
824
+ custom_update_fetcher: Optional[Callable[[], Any]] = None,
825
+ custom_update_processor: Optional[Callable[[Any], Any]] = None,
826
+ process_in_background: bool = False,
827
+ max_queue_size: int = 1000,
828
+ thread_workers: int = 3,
829
+ message_filter: Optional[Callable[[Any], bool]] = None,
830
+ pause_on_idle: bool = False,
831
+ max_concurrent_tasks: Optional[int] = None,
832
+ metrics_enabled: bool = False,
833
+ metrics_handler: Optional[Callable[[dict], Any]] = None,
834
+ notify_on_error: bool = False,
835
+ notification_handler: Optional[Callable[[str], Any]] = None,
836
+ watchdog_timeout: Optional[float] = None,
836
837
  ):
837
838
  """
838
839
  Starts the bot's main execution loop with extensive configuration options.
@@ -446,7 +446,7 @@ class Bot():
446
446
  "api_version":"0",
447
447
  "client":{
448
448
  "app_name":"Main",
449
- "app_version":"2.2.4",
449
+ "app_version":"2.4.7",
450
450
  "package":"m.rubika.ir",
451
451
  "platform":"PWA"
452
452
  },
@@ -926,6 +926,20 @@ class Bot():
926
926
  "profile_id": profile_id
927
927
  },methode="getProfileFollowers")
928
928
 
929
+ def get_Highlight_StoryIds(self,highlight_id:str,profile_id:str,target_profile_id:str):
930
+ return self._reuests_post(data={
931
+ "highlight_id": highlight_id,
932
+ "profile_id": profile_id,
933
+ "target_profile_id": target_profile_id
934
+ },methode="getHighlightStoryIds")
935
+ def get_Highlight_Stories(self,highlight_id:str,profile_id:str,target_profile_id:str,story_ids:list):
936
+ return self._reuests_post(data={
937
+ "highlight_id": highlight_id,
938
+ "profile_id": profile_id,
939
+ "target_profile_id": target_profile_id,
940
+ "story_ids":story_ids
941
+ },methode="getHighlightStories")
942
+
929
943
  def get_NewFollow_Requests(self,sort:str="FromMax",limit:int=50,equal:bool=False,profile_id:str=None):
930
944
  return self._reuests_post(data={
931
945
  "equal": equal,
@@ -955,14 +969,37 @@ class Bot():
955
969
  "track_id": "Related",
956
970
  "profile_id": profile_id
957
971
  },methode="postBookmarkAction")
958
-
959
- def get_Saved_Posts(self,sort:str="FromMax",limit:int=51,equal:bool=False,profile_id:str=None):
960
- return self._reuests_post(data={
961
- "equal": equal,
972
+ def get_saved_posts(
973
+ self,
974
+ max_id: str,
975
+ limit: int = 20,
976
+ profile_id: Optional[str] = None,
977
+ sort: str = "FromMax") -> Dict[str, Any]:
978
+ """
979
+ دریافت پست‌های ذخیره‌شده (بوکمارک‌شده)
980
+
981
+ Args:
982
+ max_id (str): شناسه آخرین پست برای صفحه‌بندی.
983
+ limit (int, optional): تعداد پست‌ها در هر درخواست. پیش‌فرض 20.
984
+ profile_id (str, optional): شناسه پروفایل (در صورت نیاز).
985
+ sort (str, optional): نوع مرتب‌سازی. پیش‌فرض "FromMax".
986
+
987
+ Returns:
988
+ Dict[str, Any]: پاسخ سرور شامل لیست پست‌های ذخیره‌شده.
989
+ """
990
+ payload = {
962
991
  "limit": limit,
963
- "sort": sort,
964
- "profile_id": profile_id
965
- },methode="getBookmarkedPosts")
992
+ "max_id": max_id,
993
+ "sort": sort
994
+ }
995
+
996
+ if profile_id is not None:
997
+ payload["profile_id"] = profile_id
998
+
999
+ return self._reuests_post(
1000
+ data=payload,
1001
+ methode="getBookmarkedPosts"
1002
+ )
966
1003
 
967
1004
  def search_Page(self,username:str,sort:str="FromMax",limit:int=50,equal:bool=False,profile_id:str=None):
968
1005
  return self._reuests_post(data={
@@ -994,6 +1031,14 @@ class Bot():
994
1031
  "record_id": post_id,
995
1032
  "profile_id": profile_id
996
1033
  },methode="setReportRecord")
1034
+ def report_Post(self,post_profile_id,post_id:str,reason:int=2,profile_id:str=None):
1035
+ return self._reuests_post(data={
1036
+ "model": "Post",
1037
+ "reason": reason,
1038
+ "post_profile_id":post_profile_id,
1039
+ "record_id": post_id,
1040
+ "profile_id": profile_id
1041
+ },methode="setReportRecord")
997
1042
 
998
1043
  def delete_Post(self,post_id:str,profile_id:str=None):
999
1044
  return self._reuests_post(data={
@@ -1013,6 +1058,12 @@ class Bot():
1013
1058
  "profile_status": profile_status,
1014
1059
  "profile_id": profile_id
1015
1060
  },methode="updateProfile")
1061
+ def get_New_Events(self,limit:int=20,sort:str="FromMax",profile_id:str=None):
1062
+ return self._reuests_post(data={
1063
+ "limit": limit,
1064
+ "profile_id": profile_id,
1065
+ "sort":sort
1066
+ },methode="updateProfile")
1016
1067
 
1017
1068
  def allow_Send_MessagePv(self,is_message_allowed:bool=False,profile_id:str=None):
1018
1069
  return self._reuests_post(data={
rubka-6.6.5/setup.py ADDED
@@ -0,0 +1,66 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ try:
4
+ with open('README.md', encoding='utf-8') as f:
5
+ long_description = f.read()
6
+ except FileNotFoundError:
7
+ long_description = ''
8
+
9
+ from setuptools import setup, find_packages
10
+
11
+ with open("README.md", "r", encoding="utf-8") as f:
12
+ long_description = f.read()
13
+
14
+ setup(
15
+ name='Rubka',
16
+ version='6.6.5',
17
+ description='rubika A Python library for interacting with Rubika Bot API.',
18
+ long_description=long_description,
19
+ long_description_content_type='text/markdown',
20
+ author='Mahdi Ahmadi',
21
+ author_email='mahdiahmadi.1208@gmail.com',
22
+ maintainer='Mahdi Ahmadi',
23
+ maintainer_email='mahdiahmadi.1208@gmail.com',
24
+ url='https://github.com/Mahdy-Ahmadi/Rubka',
25
+ download_url='https://github.com/Mahdy-Ahmadi/rubka/archive/refs/tags/v6.6.4.zip',
26
+ packages=find_packages(),
27
+ include_package_data=True,
28
+ classifiers=[
29
+ 'Development Status :: 5 - Production/Stable',
30
+ 'Intended Audience :: Developers',
31
+ 'Programming Language :: Python :: 3',
32
+ 'Programming Language :: Python :: 3.8',
33
+ 'Programming Language :: Python :: 3.9',
34
+ 'Programming Language :: Python :: 3.10',
35
+ 'License :: OSI Approved :: MIT License',
36
+ 'Operating System :: OS Independent',
37
+ 'Topic :: Communications :: Chat',
38
+ 'Topic :: Software Development :: Libraries',
39
+ 'Natural Language :: Persian',
40
+ ],
41
+ python_requires='>=3.6',
42
+ install_requires=[
43
+ "requests",
44
+ "Pillow",
45
+ "websocket-client",
46
+ 'pycryptodome',
47
+ 'aiohttp',
48
+ 'tqdm',
49
+ 'mutagen',
50
+ 'filetype',
51
+ 'aiofiles'
52
+ ],
53
+ entry_points={
54
+ "console_scripts": [
55
+ "rubka=rubka.__main__:main",
56
+ ],
57
+ },
58
+ keywords="rubika bot api library chat messaging rubpy pyrubi rubigram",
59
+ project_urls={
60
+ "Bug Tracker": "https://t.me/Bprogrammer",
61
+ "Documentation": "https://github.com/Mahdy-Ahmadi/rubka/blob/main/README.md",
62
+ "Source Code": "https://github.com/Mahdy-Ahmadi/Rubka",
63
+ },
64
+ license="MIT",
65
+ zip_safe=False
66
+ )
rubka-6.6.2/setup.py DELETED
@@ -1,43 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- try:
4
- with open('README.md', encoding='utf-8') as f:
5
- long_description = f.read()
6
- except FileNotFoundError:
7
- long_description = ''
8
-
9
- setup(
10
- name='Rubka',
11
- version='6.6.2',
12
- description='A Python library for interacting with Rubika Bot API.',
13
- long_description=long_description,
14
- long_description_content_type='text/markdown',
15
- author='Mahdi Ahmadi',
16
- author_email='mahdiahmadi.1208@gmail.com',
17
- maintainer='Mahdi Ahmadi',
18
- maintainer_email='mahdiahmadi.1208@gmail.com',
19
- url='https://github.com/Mahdy-Ahmadi/Rubka',
20
- download_url='https://github.com/Mahdy-Ahmadi/rubka/blob/main/project_library.zip',
21
- packages=find_packages(),
22
- include_package_data=True,
23
- classifiers=[
24
- 'Programming Language :: Python :: 3',
25
- 'License :: OSI Approved :: MIT License',
26
- 'Operating System :: OS Independent',
27
- 'Topic :: Communications :: Chat',
28
- 'Topic :: Software Development :: Libraries',
29
- ],
30
- python_requires='>=3.6',
31
- install_requires=[
32
- "requests",
33
- "Pillow",
34
- "websocket-client",
35
- 'pycryptodome',
36
- 'aiohttp',
37
- 'tqdm',
38
- 'mutagen',
39
- 'filetype',
40
- 'aiofiles'
41
- ]
42
-
43
- )
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