Skip to content

Send Telegram messages with markdown / HTML #230

Open

Description

@TowardMyth

Hi there. Thanks so much for developing this module.

For Telegram messages, is there any way to send messages with rich formatting in them, i.e. I can bold, italicize, etc?

Per here, the TG API supports this. https://stackoverflow.com/questions/38119481/send-bold-italic-text-on-telegram-bot-with-html.

Thanks!

Activity

  1. JoshKing56 commented on Aug 18, 2021

    @JoshKing56

    Since the ntfy telegram backend uses the telegram_send library, this should be possible, as telegram_send supports the different styles of message, including HTML mode and Markdown mode. https://github.com/rahiel/telegram-send#usage

    Calling the send() function with the option parse_mode=Markdown can accomplish this. The possible options (taken from the source code of telegram_send), is ["text", "markdown", "html"].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions