text table, telegram html message
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user