module
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Apr 14, 2022
License: MIT
Opens a new window with license information.
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
¶
Click to show internal directories.
Click to hide internal directories.