Thumbnail

rani/matterbridge.git

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

commit 15a9bfeab3ae43bd7531d49e46f2276ab7489634 Author: Wim <wim@42.be> Date: Tue May 30 21:14:03 2017 +0000 Reset variables each loop (telegram). Closes #181 diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 8631f2f..b022434 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -7611 +7611 @@ func (b *Btelegram) Send(msg config.Message) error {  }    func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) { - username := "" - text := "" - channel := ""   for update := range updates {   var message *tgbotapi.Message + username := "" + channel := "" + text := ""   // handle channels   if update.ChannelPost != nil {   message = update.ChannelPost