An open API service indexing awesome lists of open source software.

https://github.com/aliwoto/mdparser

mdparser for telegram API using MarkDownV2.
https://github.com/aliwoto/mdparser

bot bot-api markdown markdown-v2 telegram telegram-bot telegram-bot-api

Last synced: 10 months ago
JSON representation

mdparser for telegram API using MarkDownV2.

Awesome Lists containing this project

README

          

# mdparser
mdparser for telegram bot API


## How to use
First you need to get the package:
`go get -u github.com/ALiwoto/mdparser`

then you can use the package like this:

```go
import "github.com/ALiwoto/mdparser"

func sendMessage(msg Message) {
md := mdparser.GetBold("This is a message").AppendNormal(":\n")
md = md.AppendItalic("Italic\n")
md = md.AppendMono("Mono space\n")
md = md.AppendHyperLink("text", "https://google.com")

msg.Reply(md.ToString(), options{version: "MarkdownV2"})
}

```