summaryrefslogtreecommitdiffstats
path: root/bridge/telegram
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/telegram')
-rw-r--r--bridge/telegram/telegram.go6
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