Skip to content

Commit

Permalink
Merge pull request #51 from sudoskys/dev
Browse files Browse the repository at this point in the history
✨ feat(playground/markdownify_case.py): bold first list item
  • Loading branch information
sudoskys authored Dec 15, 2024
2 parents cc274ee + 5e9e478 commit 0cfd93e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions playground/telegramify_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pathlib
from time import sleep

from aiohttp import ClientSession
from dotenv import load_dotenv
from telebot import TeleBot

Expand Down Expand Up @@ -33,15 +32,13 @@

# Write an async function to send message
async def send_message():
global_session = ClientSession()
async with global_session:
boxs = await telegramify_markdown.telegramify(
content=md,
interpreters_use=[BaseInterpreter(), MermaidInterpreter(session=global_session)], # Render mermaid diagram
latex_escape=True,
normalize_whitespace=True,
max_word_count=4090 # The maximum number of words in a single message.
)
boxs = await telegramify_markdown.telegramify(
content=md,
interpreters_use=[BaseInterpreter(), MermaidInterpreter(session=None)], # Render mermaid diagram
latex_escape=True,
normalize_whitespace=True,
max_word_count=4090 # The maximum number of words in a single message.
)
for item in boxs:
print("Sent one item")
sleep(0.2)
Expand Down

0 comments on commit 0cfd93e

Please sign in to comment.