Validate Telegram flavored markdown
Project description
Validate Telegram Markdown
This package tries to validate that telegram-flavored markdown is correct and safe to use in sendMessage.
Simple and naive implementation, probably has bugs but good enough for my personal use case.
Supports all features of MarkdownV2 Style.
Contributions are welcome!
Installation
pip install validate-telegram-markdown
Usage
from validate_telegram_markdown import validate_markdown
message = "*bold*"
try:
validate_markdown(message)
except ValueError:
# something isn't right
raise
# or here you can safely use message in telegram sendMessage method
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 validate_telegram_markdown-0.1.0.tar.gz
.
File metadata
- Download URL: validate_telegram_markdown-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e13b9ccb92cac05bf5da33fef64b260c6678d6d2fdce8fdac8e2715959a43b8 |
|
MD5 | e56eae28956de5df2c6840708307629c |
|
BLAKE2b-256 | 97fc7cc5f4cfdc5a17ba6127e65e11433223de38112b730036d0d21c66b54986 |
File details
Details for the file validate_telegram_markdown-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: validate_telegram_markdown-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | babc7f66207625c77650acb32fe4854112fe23d7feebea5960f9d849373cfdf8 |
|
MD5 | 336b0cde864a6af5e9307eaebd06106b |
|
BLAKE2b-256 | 30bd6f90cc3a8e4446022e4f92fe543ae1d362efcbc392592996082b56ef6ef6 |