Skip to main content

Validate Telegram Markdown

Lint and Test pypi package python

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)

Source distribution for validate-telegram-markdown 0.1.0
File Size Uploaded
validate_telegram_markdown-0.1.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for validate-telegram-markdown 0.1.0
File Interpreter ABI Platform
validate_telegram_markdown-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page