/mdparser

mdparser for telegram API using MarkDownV2.

Primary LanguageGoMIT LicenseMIT

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:

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"})
}