Rubka 7.1.11__tar.gz → 7.1.12__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.
Files changed (51) hide show
  1. {rubka-7.1.11 → rubka-7.1.12}/PKG-INFO +1 -1
  2. {rubka-7.1.11 → rubka-7.1.12}/Rubka.egg-info/PKG-INFO +1 -1
  3. {rubka-7.1.11 → rubka-7.1.12}/rubka/metadata.py +23 -13
  4. {rubka-7.1.11 → rubka-7.1.12}/setup.py +1 -1
  5. {rubka-7.1.11 → rubka-7.1.12}/README.md +0 -0
  6. {rubka-7.1.11 → rubka-7.1.12}/Rubka.egg-info/SOURCES.txt +0 -0
  7. {rubka-7.1.11 → rubka-7.1.12}/Rubka.egg-info/dependency_links.txt +0 -0
  8. {rubka-7.1.11 → rubka-7.1.12}/Rubka.egg-info/entry_points.txt +0 -0
  9. {rubka-7.1.11 → rubka-7.1.12}/Rubka.egg-info/not-zip-safe +0 -0
  10. {rubka-7.1.11 → rubka-7.1.12}/Rubka.egg-info/requires.txt +0 -0
  11. {rubka-7.1.11 → rubka-7.1.12}/Rubka.egg-info/top_level.txt +0 -0
  12. {rubka-7.1.11 → rubka-7.1.12}/rubka/__init__.py +0 -0
  13. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/__init__.py +0 -0
  14. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/client/__init__.py +0 -0
  15. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/client/client.py +0 -0
  16. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/crypto/__init__.py +0 -0
  17. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/crypto/crypto.py +0 -0
  18. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/enums.py +0 -0
  19. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/exceptions.py +0 -0
  20. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/methods/__init__.py +0 -0
  21. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/methods/methods.py +0 -0
  22. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/network/__init__.py +0 -0
  23. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/network/helper.py +0 -0
  24. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/network/network.py +0 -0
  25. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/network/socket.py +0 -0
  26. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/sessions/__init__.py +0 -0
  27. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/sessions/sessions.py +0 -0
  28. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/types/__init__.py +0 -0
  29. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/types/socket/__init__.py +0 -0
  30. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/types/socket/message.py +0 -0
  31. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/utils/__init__.py +0 -0
  32. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/utils/configs.py +0 -0
  33. {rubka-7.1.11 → rubka-7.1.12}/rubka/adaptorrubka/utils/utils.py +0 -0
  34. {rubka-7.1.11 → rubka-7.1.12}/rubka/api.py +0 -0
  35. {rubka-7.1.11 → rubka-7.1.12}/rubka/asynco.py +0 -0
  36. {rubka-7.1.11 → rubka-7.1.12}/rubka/button.py +0 -0
  37. {rubka-7.1.11 → rubka-7.1.12}/rubka/config.py +0 -0
  38. {rubka-7.1.11 → rubka-7.1.12}/rubka/context.py +0 -0
  39. {rubka-7.1.11 → rubka-7.1.12}/rubka/decorators.py +0 -0
  40. {rubka-7.1.11 → rubka-7.1.12}/rubka/exceptions.py +0 -0
  41. {rubka-7.1.11 → rubka-7.1.12}/rubka/filters.py +0 -0
  42. {rubka-7.1.11 → rubka-7.1.12}/rubka/helpers.py +0 -0
  43. {rubka-7.1.11 → rubka-7.1.12}/rubka/jobs.py +0 -0
  44. {rubka-7.1.11 → rubka-7.1.12}/rubka/keyboards.py +0 -0
  45. {rubka-7.1.11 → rubka-7.1.12}/rubka/keypad.py +0 -0
  46. {rubka-7.1.11 → rubka-7.1.12}/rubka/logger.py +0 -0
  47. {rubka-7.1.11 → rubka-7.1.12}/rubka/rubino.py +0 -0
  48. {rubka-7.1.11 → rubka-7.1.12}/rubka/tv.py +0 -0
  49. {rubka-7.1.11 → rubka-7.1.12}/rubka/update.py +0 -0
  50. {rubka-7.1.11 → rubka-7.1.12}/rubka/utils.py +0 -0
  51. {rubka-7.1.11 → rubka-7.1.12}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Rubka
3
- Version: 7.1.11
3
+ Version: 7.1.12
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.11
3
+ Version: 7.1.12
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
@@ -3,16 +3,20 @@ from typing import Any, Dict, List
3
3
  import markdownify
4
4
  class Track_parsed:
5
5
  _PATT = re.compile(
6
- r"(?P<pre>```(?P<pre_c>[\s\S]*?)```)"
7
- r"|(?P<bold>\*\*(?P<bold_c>.*?)\*\*)"
8
- r"|(?P<mono>`(?P<mono_c>.*?)`)"
9
- r"|(?P<italic>__(?P<italic_c>.*?)__)"
10
- r"|(?P<underline>--(?P<underline_c>.*?)--)"
11
- r"|(?P<strike>~~(?P<strike_c>.*?)~~)"
12
- r"|(?P<spoiler>\|\|(?P<spoiler_c>.*?)\|\|)"
13
- r"|(?P<link>\[(?P<link_text>.*?)\]\((?P<link_url>\S+?)\))",
14
- flags=re.DOTALL,
15
- )
6
+ r"(?P<pre>```(?P<pre_c>[\s\S]*?)```)"
7
+ r"|(?P<bold>\*\*(?P<bold_c>.*?)\*\*)"
8
+ r"|(?P<mono>`(?P<mono_c>.*?)`)"
9
+ r"|(?P<italic>__(?P<italic_c>.*?)__)"
10
+ r"|(?P<underline>--(?P<underline_c>.*?)--)"
11
+ r"|(?P<link>\[(?P<link_text>.*?)\]\((?P<link_url>\S+?)\))"
12
+ r"|(?P<quote>\$(?P<quote_c>[\s\S]*?)\$)"
13
+ r"|(?P<strike>~~(?P<strike_c>.*?)~~)"
14
+ r"|(?P<spoiler>\|\|(?P<spoiler_c>.*?)\|\|)",
15
+ flags=re.DOTALL,
16
+ )
17
+
18
+
19
+
16
20
  _TYPE_MAP = {
17
21
  "pre": "Pre",
18
22
  "bold": "Bold",
@@ -21,6 +25,7 @@ class Track_parsed:
21
25
  "underline": "Underline",
22
26
  "strike": "Strike",
23
27
  "spoiler": "Spoiler",
28
+ "quote": "Quote",
24
29
  "link": "Link",
25
30
  }
26
31
 
@@ -55,18 +60,23 @@ class Track_parsed:
55
60
  gname = m.lastgroup
56
61
  if not gname:
57
62
  continue
63
+
58
64
  if gname == "link":
59
65
  inner = m.group("link_text") or ""
60
66
  link_href = m.group("link_url")
61
67
  else:
62
68
  inner = m.group(f"{gname}_c") or ""
63
69
  link_href = None
64
-
70
+ if gname == "quote":
71
+ inner_metadata = self.transcribe(inner, mode="MARKDOWN")
72
+ inner = inner_metadata["text"]
73
+ if "metadata" in inner_metadata:
74
+ for part in inner_metadata["metadata"]["meta_data_parts"]:
75
+ part["from_index"] += adj_from
76
+ payload_parts.append(part)
65
77
  if inner == "":
66
78
  continue
67
-
68
79
  content_utf16_len = self._utf16_len_java_style(inner)
69
-
70
80
  part: Dict[str, Any] = {
71
81
  "type": self._TYPE_MAP.get(gname, "Unknown"),
72
82
  "from_index": adj_from,
@@ -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.11',
16
+ version='7.1.12',
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