switch to using a webhook so telegram calls you through a handler this is a limitation of GAE's request based model
On Sunday, September 15, 2019 at 4:04:29 PM UTC+2, Andreas wrote: > > > > I uploaded a simple telegram bot to google-aplication-engine. And after > uploading it works as expected some time. Then it stoped respond to request > from telegram. The bot is very simple > > > func main() { >> bot, err := tba.NewBotAPI("apitockenhere") >> ... >> for { >> select { >> case update := <-uchan: >> ... >> } >> } > > > If I open web application in browser (it doesnot contais any handlers so > it opens nothing) then telegram bot again starts working some time and then > stops. > > It works as expect localy but there is probably some issues with GAE. > How to modify the code to prevent it from stopping? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/d556d6f8-bd0e-4513-9655-0e0fa3e485a7%40googlegroups.com.