Rubka 7.1.14__py3-none-any.whl → 7.1.16__py3-none-any.whl

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/asynco.py CHANGED
@@ -2419,8 +2419,19 @@ max_cache_size and max_msg_age help manage duplicate message processing efficien
2419
2419
  return await self._post("leaveChat", {"chat_id": chat_id})
2420
2420
  async def forward_message(self, from_chat_id: str, message_id: str, to_chat_id: str, disable_notification: bool = False) -> Dict[str, Any]:
2421
2421
  return await self._post("forwardMessage", {"from_chat_id": from_chat_id, "message_id": message_id, "to_chat_id": to_chat_id, "disable_notification": disable_notification})
2422
- async def edit_message_text(self, chat_id: str, message_id: str, text: str) -> Dict[str, Any]:
2423
- return await self._post("editMessageText", {"chat_id": chat_id, "message_id": message_id, "text": text})
2422
+ async def edit_message_text(self, chat_id: str, message_id: str, text: str, parse_mode: Optional[Literal["HTML", "Markdown"]] = None) -> Dict[str, Any]:
2423
+ payload = {
2424
+ "chat_id": chat_id,
2425
+ "message_id": message_id,
2426
+ "text": text,
2427
+ }
2428
+ parse_mode_to_use = parse_mode or self.parse_mode
2429
+ if text:
2430
+ text, metadata = self._parse_text_metadata(text, parse_mode_to_use)
2431
+ payload["text"] = text
2432
+ if metadata:
2433
+ payload["metadata"] = metadata
2434
+ return await self._post("editMessageText", payload)
2424
2435
  async def edit_inline_keypad(self,chat_id: str,message_id: str,inline_keypad: Dict[str, Any],text: str = None) -> Dict[str, Any]:
2425
2436
  if text is not None:await self._post("editMessageText", {"chat_id": chat_id,"message_id": message_id,"text": text})
2426
2437
  return await self._post("editMessageKeypad", {"chat_id": chat_id,"message_id": message_id,"inline_keypad": inline_keypad})
rubka/metadata.py CHANGED
@@ -82,7 +82,7 @@ class Track_parsed:
82
82
  else:
83
83
  inner = m.group(f"{gname}_c") or ""
84
84
  link_href = None
85
- if gname in ["quote", "quote_md"]:
85
+ if gname in ["quote", "quote_md", "bold", "italic", "underline", "spoiler", "strike"]:
86
86
  inner_metadata = self.transcribe(inner, mode="MARKDOWN")
87
87
  inner = inner_metadata["text"]
88
88
  if "metadata" in inner_metadata:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Rubka
3
- Version: 7.1.14
3
+ Version: 7.1.16
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
@@ -33,6 +33,7 @@ Requires-Dist: aiohttp
33
33
  Requires-Dist: httpx
34
34
  Requires-Dist: tqdm
35
35
  Requires-Dist: mutagen
36
+ Requires-Dist: markdownify
36
37
  Requires-Dist: filetype
37
38
  Requires-Dist: aiofiles
38
39
  Dynamic: author
@@ -1,6 +1,6 @@
1
1
  rubka/__init__.py,sha256=P6IBiORfp-GqKHe5LZ-5lldWyG7tnrUYUcAQDUgwXmY,1973
2
2
  rubka/api.py,sha256=71B10uy2iU3gP6yHQltjyTkq2mgkzWuV1TsE2kgHOZg,68092
3
- rubka/asynco.py,sha256=f54Pc7tb2awE0qz-uALA_gExvBiCFlxlKR7ICTLdPSs,119448
3
+ rubka/asynco.py,sha256=xA6yqAbMSLpAJ27YJpqPQwXojQNEu9_V6AkR_-le0xg,119852
4
4
  rubka/button.py,sha256=woSzZVd5MtTqOrP-YgkH5b0GS9y4DuKBsFSc9-KuLnk,13320
5
5
  rubka/config.py,sha256=Bck59xkOiqioLv0GkQ1qPGnBXVctz1hKk6LT4h2EPx0,78
6
6
  rubka/context.py,sha256=brl7WXe4nzpLpcaMiOLVMfOs8BFTU5z5Sw6AIecCtOA,42492
@@ -12,7 +12,7 @@ rubka/jobs.py,sha256=GvLMLsVhcSEzRTgkvnPISPEBN71suW2xXI0hUaUZPTo,378
12
12
  rubka/keyboards.py,sha256=7nr-dT2bQJVQnQ6RMWPTSjML6EEk6dsBx-4d8pab8xk,488
13
13
  rubka/keypad.py,sha256=yGsNt8W5HtUFBzVF1m_p7GySlu1hwIcSvXZ4BTdrlvg,9558
14
14
  rubka/logger.py,sha256=J2I6NiK1z32lrAzC4H1Et6WPMBXxXGCVUsW4jgcAofs,289
15
- rubka/metadata.py,sha256=7LKtFpZAGOvOHwsFcGds99vyHFmXVNNfdpyuUEKOHBI,4277
15
+ rubka/metadata.py,sha256=RWle8mwWAcIFVAETHzRPD3vCwqPidB0ERsMatQY8h_w,4329
16
16
  rubka/rubino.py,sha256=HOILsm2zOIRe9EW1hxhLinhjwE_TvFrOAxBsg9T_L5E,61701
17
17
  rubka/tv.py,sha256=rBoyCadCH3I3YqQGrQYv_dLtTg1I63AzVf1orn-hbko,5724
18
18
  rubka/update.py,sha256=brl7WXe4nzpLpcaMiOLVMfOs8BFTU5z5Sw6AIecCtOA,42492
@@ -38,8 +38,8 @@ rubka/adaptorrubka/types/socket/message.py,sha256=0WgLMZh4eow8Zn7AiSX4C3GZjQTkIg
38
38
  rubka/adaptorrubka/utils/__init__.py,sha256=OgCFkXdNFh379quNwIVOAWY2NP5cIOxU5gDRRALTk4o,54
39
39
  rubka/adaptorrubka/utils/configs.py,sha256=nMUEOJh1NqDJsf9W9PurkN_DLYjO6kKPMm923i4Jj_A,492
40
40
  rubka/adaptorrubka/utils/utils.py,sha256=5-LioLNYX_TIbQGDeT50j7Sg9nAWH2LJUUs-iEXpsUY,8816
41
- rubka-7.1.14.dist-info/METADATA,sha256=aP-fn92U05-HDs5cs2N2EE7TTD5Byl-HeqbGaSsweeE,34645
42
- rubka-7.1.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
- rubka-7.1.14.dist-info/entry_points.txt,sha256=4aESuUmuUOALMUy7Kucv_Gb5YlqhsJmTmdXLlZU9sJ0,46
44
- rubka-7.1.14.dist-info/top_level.txt,sha256=vy2A4lot11cRMdQS-F4HDCIXL3JK8RKfu7HMDkezJW4,6
45
- rubka-7.1.14.dist-info/RECORD,,
41
+ rubka-7.1.16.dist-info/METADATA,sha256=dA8t3_609uIIlQHQd6vLIcDzQLZ0d3RHtI44YdvJI2M,34673
42
+ rubka-7.1.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
+ rubka-7.1.16.dist-info/entry_points.txt,sha256=4aESuUmuUOALMUy7Kucv_Gb5YlqhsJmTmdXLlZU9sJ0,46
44
+ rubka-7.1.16.dist-info/top_level.txt,sha256=vy2A4lot11cRMdQS-F4HDCIXL3JK8RKfu7HMDkezJW4,6
45
+ rubka-7.1.16.dist-info/RECORD,,
File without changes