Skip to main content

Validate Telegram flavored markdown

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

validate_telegram_markdown-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file validate_telegram_markdown-0.1.0.tar.gz.

File metadata

File hashes

Hashes for validate_telegram_markdown-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e13b9ccb92cac05bf5da33fef64b260c6678d6d2fdce8fdac8e2715959a43b8
MD5 e56eae28956de5df2c6840708307629c
BLAKE2b-256 97fc7cc5f4cfdc5a17ba6127e65e11433223de38112b730036d0d21c66b54986

See more details on using hashes here.

File details

Details for the file validate_telegram_markdown-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for validate_telegram_markdown-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 babc7f66207625c77650acb32fe4854112fe23d7feebea5960f9d849373cfdf8
MD5 336b0cde864a6af5e9307eaebd06106b
BLAKE2b-256 30bd6f90cc3a8e4446022e4f92fe543ae1d362efcbc392592996082b56ef6ef6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page