mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 18:22:00 -08:00
Reset variables each loop (telegram). Closes #181
This commit is contained in:
parent
c791423dd5
commit
9bcd131e66
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user