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
Metadata
Release files for validate-telegram-markdown 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| validate_telegram_markdown-0.1.0.tar.gz | 5.2 kB | Without provenance | Details for validate_telegram_markdown-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| validate_telegram_markdown-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for validate_telegram_markdown-0.1.0-py3-none-any.whl |
Total release size: 10.7 kB
Release files / validate_telegram_markdown-0.1.0.tar.gz
| Download URL | validate_telegram_markdown-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e13b9ccb92cac05bf5da33fef64b260c6678d6d2fdce8fdac8e2715959a43b8
|
|
BLAKE2b-256 checksum How to use checksums |
97fc7cc5f4cfdc5a17ba6127e65e11433223de38112b730036d0d21c66b54986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Release files / validate_telegram_markdown-0.1.0-py3-none-any.whl
| Download URL | validate_telegram_markdown-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
babc7f66207625c77650acb32fe4854112fe23d7feebea5960f9d849373cfdf8
|
|
BLAKE2b-256 checksum How to use checksums |
30bd6f90cc3a8e4446022e4f92fe543ae1d362efcbc392592996082b56ef6ef6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Security for validate-telegram-markdown 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.