support markdown format.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-10-07 00:28:13 +08:00
parent 215d08a0d6
commit 75c04eafaa

View File

@ -108,7 +108,13 @@ func (p Plugin) Exec() error {
for _, user := range ids {
for _, value := range trimElement(message) {
msg := tgbotapi.NewMessage(user, value)
bot.Send(msg)
msg.ParseMode = "markdown"
_, err := bot.Send(msg)
if err != nil {
log.Println(err.Error())
}
}
}