text table, telegram html message

This commit is contained in:
2025-11-28 15:43:07 +03:00
parent 68310ac711
commit 5727c7a60c
6 changed files with 179 additions and 4 deletions

View File

@@ -60,3 +60,9 @@ func (s *Bot) SendTextMessage(chatID int64, text string) (tgbotapi.Message, erro
message.ParseMode = "Markdown"
return s.api.Send(message)
}
func (s *Bot) SendHTMLMessage(chatID int64, text string) (tgbotapi.Message, error) {
message := tgbotapi.NewMessage(chatID, text)
message.ParseMode = "HTML"
return s.api.Send(message)
}