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
TgEntity-0.2.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file TgEntity-0.2.0.tar.gz
.
File metadata
- Download URL: TgEntity-0.2.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f6bda2146af475a6b43bbc8f62bcd1e08f8682b1cfc547e2959469567a92c0 |
|
MD5 | 9c7335683157a308f54545ddb51f7963 |
|
BLAKE2b-256 | bec1c90240149b50287ae27ab091ce25cffc9fb91050c0624945e2524d25106c |
File details
Details for the file TgEntity-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: TgEntity-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 173122acc5131e568a742028d77251e7f7d89fb5c1c5f97f43a86684118a6d6d |
|
MD5 | 70194f7f5e142c28d6c661d06b68e1b9 |
|
BLAKE2b-256 | 05486eb0d5c22119797951a00751ccb12b99de2d2d6a168d7a47ccb1f150519e |