vibego 0.2.16__py3-none-any.whl → 0.2.18__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.
Potentially problematic release.
This version of vibego might be problematic. Click here for more details.
- bot.py +10 -2
- {vibego-0.2.16.dist-info → vibego-0.2.18.dist-info}/METADATA +1 -1
- {vibego-0.2.16.dist-info → vibego-0.2.18.dist-info}/RECORD +7 -7
- vibego_cli/__init__.py +1 -1
- {vibego-0.2.16.dist-info → vibego-0.2.18.dist-info}/WHEEL +0 -0
- {vibego-0.2.16.dist-info → vibego-0.2.18.dist-info}/entry_points.txt +0 -0
- {vibego-0.2.16.dist-info → vibego-0.2.18.dist-info}/top_level.txt +0 -0
bot.py
CHANGED
|
@@ -391,9 +391,17 @@ async def _send_with_retry(coro_factory, *, attempts: int = SEND_RETRY_ATTEMPTS)
|
|
|
391
391
|
|
|
392
392
|
|
|
393
393
|
def _escape_markdown_v2(text: str) -> str:
|
|
394
|
+
"""转义 MarkdownV2 特殊字符。
|
|
395
|
+
|
|
396
|
+
注意:
|
|
397
|
+
- Text().as_markdown() 会转义所有 MarkdownV2 特殊字符
|
|
398
|
+
- 只移除纯英文单词之间的连字符转义(如 "pre-release")
|
|
399
|
+
- 保留数字、时间戳等其他情况的连字符转义(如 "2025-10-23")
|
|
400
|
+
"""
|
|
394
401
|
escaped = Text(text).as_markdown()
|
|
395
|
-
|
|
396
|
-
escaped =
|
|
402
|
+
# 只移除纯英文字母之间的连字符转义(避免影响数字、时间戳等)
|
|
403
|
+
escaped = re.sub(r"(?<=[a-zA-Z])\\-(?=[a-zA-Z])", "-", escaped)
|
|
404
|
+
# 移除斜杠的转义(Telegram 不需要转义斜杠)
|
|
397
405
|
escaped = escaped.replace("\\/", "/")
|
|
398
406
|
return escaped
|
|
399
407
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bot.py,sha256=
|
|
1
|
+
bot.py,sha256=mX0fgXEbm7M5baUvX_Q--NWpwYWzF8Yge6wrp4MoS6U,264070
|
|
2
2
|
logging_setup.py,sha256=gvxHi8mUwK3IhXJrsGNTDo-DR6ngkyav1X-tvlBF_IE,4613
|
|
3
3
|
master.py,sha256=Qz2NTapUexVvpQz8Y_pVhKd-uXkqp3M6oclzfAzIuGs,106497
|
|
4
4
|
project_repository.py,sha256=UcthtSGOJK0cTE5bQCneo3xkomRG-kyc1N1QVqxeHIs,17577
|
|
@@ -425,14 +425,14 @@ tasks/constants.py,sha256=tS1kZxBIUm3JJUMHm25XI-KHNUZl5NhbbuzjzL_rF-c,299
|
|
|
425
425
|
tasks/fsm.py,sha256=rKXXLEieQQU4r2z_CZUvn1_70FXiZXBBugF40gpe_tQ,1476
|
|
426
426
|
tasks/models.py,sha256=N_qqRBo9xMSV0vbn4k6bLBXT8C_dp_oTFUxvdx16ZQM,2459
|
|
427
427
|
tasks/service.py,sha256=w_S_aWiVqRXzXEpimLDsuCCCX2lB5uDkff9aKThBw9c,41916
|
|
428
|
-
vibego_cli/__init__.py,sha256=
|
|
428
|
+
vibego_cli/__init__.py,sha256=M8Oc6o3XOUKq9SL__MXA-SqxrkAPAXJ3RZSCBM_TZlw,311
|
|
429
429
|
vibego_cli/__main__.py,sha256=qqTrYmRRLe4361fMzbI3-CqpZ7AhTofIHmfp4ykrrBY,158
|
|
430
430
|
vibego_cli/config.py,sha256=33WSORCfUIxrDtgASPEbVqVLBVNHh-RSFLpNy7tfc0s,2992
|
|
431
431
|
vibego_cli/deps.py,sha256=1nRXI7Dd-S1hYE8DligzK5fIluQWETRUj4_OKL0DikQ,1419
|
|
432
432
|
vibego_cli/main.py,sha256=e2W5Pb9U9rfmF-jNX9uIA3222lhM0GgcvSdFTDBZd2s,12086
|
|
433
433
|
vibego_cli/data/worker_requirements.txt,sha256=QSt30DSSSHtfucTFPpc7twk9kLS5rVLNTcvDiagxrZg,62
|
|
434
|
-
vibego-0.2.
|
|
435
|
-
vibego-0.2.
|
|
436
|
-
vibego-0.2.
|
|
437
|
-
vibego-0.2.
|
|
438
|
-
vibego-0.2.
|
|
434
|
+
vibego-0.2.18.dist-info/METADATA,sha256=EV6IIf-JRkYtbjZVBMN1e8RCHfX-0vGNmJICXQOcbEY,10475
|
|
435
|
+
vibego-0.2.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
436
|
+
vibego-0.2.18.dist-info/entry_points.txt,sha256=Lsy_zm-dlyxt8-9DL9blBReIwU2k22c8-kifr46ND1M,48
|
|
437
|
+
vibego-0.2.18.dist-info/top_level.txt,sha256=R56CT3nW5H5v3ce0l3QDN4-C4qxTrNWzRTwrxnkDX4U,69
|
|
438
|
+
vibego-0.2.18.dist-info/RECORD,,
|
vibego_cli/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|