diff options
author | Wim <wim@42.be> | 2017-05-30 21:14:03 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-05-30 21:14:03 +0200 |
commit | 9bcd131e66036afff8a8b8202da46f0f69295935 (patch) | |
tree | bf853c3a087ac1897a390b167565d126be13c9e8 /bridge/telegram/telegram.go | |
parent | c791423dd5c56d6fbf5908e7bf8b7343b908337d (diff) | |
download | matterbridge-msglm-9bcd131e66036afff8a8b8202da46f0f69295935.tar.gz matterbridge-msglm-9bcd131e66036afff8a8b8202da46f0f69295935.tar.bz2 matterbridge-msglm-9bcd131e66036afff8a8b8202da46f0f69295935.zip |
Reset variables each loop (telegram). Closes #181
Diffstat (limited to 'bridge/telegram/telegram.go')
-rw-r--r-- | bridge/telegram/telegram.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 8631f2f9..b0224347 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -76,11 +76,11 @@ 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 |