support markdown format.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
215d08a0d6
commit
75c04eafaa
@ -108,7 +108,13 @@ func (p Plugin) Exec() error {
|
|||||||
for _, user := range ids {
|
for _, user := range ids {
|
||||||
for _, value := range trimElement(message) {
|
for _, value := range trimElement(message) {
|
||||||
msg := tgbotapi.NewMessage(user, value)
|
msg := tgbotapi.NewMessage(user, value)
|
||||||
bot.Send(msg)
|
msg.ParseMode = "markdown"
|
||||||
|
|
||||||
|
_, err := bot.Send(msg)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
log.Println(err.Error())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user