diff options
author | Wim <wim@42.be> | 2018-02-04 17:55:20 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-04 17:55:20 +0100 |
commit | 432cd0f99df8fea2fa9c4c454b3492da6dcee578 (patch) | |
tree | e25a8220259a053ac0f9997a40255995cb96e83b /bridge | |
parent | e8b3e9b22d2de092649097e98854e1c31ebfa070 (diff) | |
download | matterbridge-msglm-432cd0f99df8fea2fa9c4c454b3492da6dcee578.tar.gz matterbridge-msglm-432cd0f99df8fea2fa9c4c454b3492da6dcee578.tar.bz2 matterbridge-msglm-432cd0f99df8fea2fa9c4c454b3492da6dcee578.zip |
Add more parsemode debug (telegram)
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/telegram/telegram.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 5c6de447..09622801 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -87,9 +87,11 @@ 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) @@ -325,9 +327,11 @@ 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) |