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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tgentity_updated-0.4.0.tar.gz
.
File metadata
- Download URL: tgentity_updated-0.4.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fe33cab94f1062e7b50c801b41da5f610bd5231ee9357398f66c67032fc80ce |
|
MD5 | 02d919ccffb1b1af04b83a4f93f568cb |
|
BLAKE2b-256 | 1b0eab0ea6fb5d79ff7b720b75a874a51e24473fa652ff296feff05bcd101e9c |
File details
Details for the file TgEntity_Updated-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: TgEntity_Updated-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe71b43d610a29c8e15f6956d752ec53e7f8c054c4f996715cb8a4ac4e72520 |
|
MD5 | d9e444e1f99b1c0398b0b405db5f5fdf |
|
BLAKE2b-256 | 0df135bcf63e5c3a47f4c7b08fd750e74b1bacb1b1b3f238ae8ab4514849db7c |