mdparser

module
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2022 License: MIT

README

mdparser

mdparser for telegram bot API


How to use

First you need to get the package: go get -u github.com/AnimeKaizoku/mdparser

then you can use the package like this:

import "github.com/AnimeKaizoku/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"})
}


Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL