Fix error messages in telegram and slack bridges (#1862)

* Fix message html entities escaping when sending to Telegram

* Fix error messages in telegram and slack bridges

Co-authored-by: Wim <wim@42.be>
This commit is contained in:
Alexander 2022-09-05 20:31:45 +03:00 committed by GitHub
parent 0482cd191d
commit 365acc36ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) {
case *slack.FileDeletedEvent: case *slack.FileDeletedEvent:
rmsg, err := b.handleFileDeletedEvent(ev) rmsg, err := b.handleFileDeletedEvent(ev)
if err != nil { if err != nil {
b.Log.Errorf("%#v", err) b.Log.Printf("%#v", err)
continue continue
} }
messages <- rmsg messages <- rmsg

View File

@ -176,7 +176,7 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
if update.Message == nil && update.ChannelPost == nil && if update.Message == nil && update.ChannelPost == nil &&
update.EditedMessage == nil && update.EditedChannelPost == nil { update.EditedMessage == nil && update.EditedChannelPost == nil {
b.Log.Error("Getting nil messages, this shouldn't happen.") b.Log.Info("Received event without messages, skipping.")
continue continue
} }