feat(telegram-bridge): share markdown render

This commit is contained in:
banteg
2025-12-28 21:02:36 +04:00
parent 89ddf71e9c
commit 7588429213
6 changed files with 155 additions and 7 deletions
+6 -1
View File
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["markdown-it-py", "sulguk", "tomli; python_version < '3.11'"]
# ///
from __future__ import annotations
import argparse
@@ -35,7 +40,7 @@ def main() -> None:
if text is None:
text = sys.stdin.read()
sent = bot.send_message_chunked(
sent = bot.send_message_markdown_chunked(
chat_id=args.chat_id,
text=text,
reply_to_message_id=args.reply_to,