mdparser for telegram bot API
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"})
}