Added markdown mode

This commit is contained in:
Artyom Belousov 2021-06-06 17:40:45 +03:00
parent 4217c0238e
commit c141e5b8b4

View file

@ -19,7 +19,7 @@ func (s *Sender) SendPrices(userId int64, cardName string, prices []cardsinfo.Sc
func (h *Sender) Send(userId int64, message string) { func (h *Sender) Send(userId int64, message string) {
msg := tgbotapi.NewMessage(userId, message) msg := tgbotapi.NewMessage(userId, message)
msg.DisableWebPagePreview = true msg.DisableWebPagePreview = true
msg.ParseMode = "MarkdownV2" msg.ParseMode = tgbotapi.ModeMarkdown
h.API.Send(msg) h.API.Send(msg)
} }