go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.7k stars 879 forks source link

Why do you send multiple replies? #522

Open devghb opened 2 years ago

devghb commented 2 years ago

u := tgbotapi.UpdateConfig{ Offset: 0, Timeout: 100, } updates, _ := bot.GetUpdatesChan(u)

for update := range updates {

    go lucky.processUpdate(&update)
}
cmaglie commented 2 years ago

If you want to get help, you should at least send a COMPLETE example that demonstrates the problem.

"Complete" means that the example must compile and can be run to try it.