Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit a0b5ec4a3723e716e52ddc763768f3e70650b2b0 Author: Wim <wim@42.be> Date: Sun Feb 04 17:55:20 2018 +0000 Add more parsemode debug (telegram) diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 5c6de44..0962280 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -879 +8711 @@ func (b *Btelegram) Send(msg config.Message) (string, error) {   }   m := tgbotapi.NewEditMessageText(chatid, msgid, msg.Username+msg.Text)   if b.Config.MessageFormat == "HTML" { + flog.Debug("Using mode HTML")   m.ParseMode = tgbotapi.ModeHTML   }   if b.Config.MessageFormat == "Markdown" { + flog.Debug("Using mode markdown")   m.ParseMode = tgbotapi.ModeMarkdown   }   _, err = b.c.Send(m) @@ -3259 +32711 @@ func (b *Btelegram) handleDownload(file interface{}, comment string, msg *config  func (b *Btelegram) sendMessage(chatid int64, text string) (string, error) {   m := tgbotapi.NewMessage(chatid, text)   if b.Config.MessageFormat == "HTML" { + flog.Debug("Using mode HTML")   m.ParseMode = tgbotapi.ModeHTML   }   if b.Config.MessageFormat == "Markdown" { + flog.Debug("Using mode markdown")   m.ParseMode = tgbotapi.ModeMarkdown   }   res, err := b.c.Send(m)