package handlers import ( "log" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5" ) func (h *Handler) reply(chat int64, text string) { m := tgbotapi.NewMessage(chat, text) _, err := h.api.Send(m) if err != nil { log.Fatal(err) } } func (h *Handler) replyMarkdown(chatID int64, text string) { msg := tgbotapi.NewMessage(chatID, text) msg.ParseMode = tgbotapi.ModeMarkdown h.api.Send(msg) }