Skip to content

KumaTea/tgentity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TgEntity

Convert Telegram entities to HTML or Markdown.

This project is a rewrite of @telegraf/entity in Python.

pip install tgentity

Usage

from tgentity import to_markdown_v2, to_html

html = to_html(message)
markdown = to_markdown_v2(message)
  • Aliases
    • to_md = to_markdown_v2
    • to_markdown = to_markdown_v2