Skip to main content

Telegram entity parser

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TgEntity-0.2.0.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

TgEntity-0.2.0-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page