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?