[go-nuts] Seeting up a webhook for GAE (telegram bot deployed)

2019-09-15 Thread Andreas
I deployed a telegram bot on GAE but it seems something went wrong - I do not recive any updates from channel. Is this a valid example, or there is an error? import ( "log" "net/http" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" ) func main() { log.Printf("%s", "

[go-nuts] Re: GAE - Telegram bot stops working after some period of time

2019-09-15 Thread Andreas
I've already tried it but in this case telegrambot did not recieve any updates from the updates channel. I used this reference https://github.com/go-telegram-bot-api/telegram-bot-api/wiki/Webhooks but instead of www.google.com:8443 I used also patternbot.appspot.com:8443. And should I use go

[go-nuts] Re: GAE - Telegram bot stops working after some period of time

2019-09-15 Thread Sean Liao
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 s

Re: [go-nuts] Who can explain more on the "upgrade" module version selector?

2019-09-15 Thread T L
On Sunday, September 15, 2019 at 12:35:27 PM UTC-4, Axel Wagner wrote: > > On Sun, Sep 15, 2019 at 6:11 PM T L > > wrote: > >> Do you mean if there is already a require line in the go.mod file, >> which requires a non-formal tagged version, >> then "go get ...@latest" will rollback the require t

Re: [go-nuts] Who can explain more on the "upgrade" module version selector?

2019-09-15 Thread 'Axel Wagner' via golang-nuts
On Sun, Sep 15, 2019 at 6:11 PM T L wrote: > Do you mean if there is already a require line in the go.mod file, > which requires a non-formal tagged version, > then "go get ...@latest" will rollback the require to the latest formal > tagged version, > but "go get ...@upgrade" will not? > AIUI (n

Re: [go-nuts] Who can explain more on the "upgrade" module version selector?

2019-09-15 Thread T L
On Saturday, September 14, 2019 at 11:04:06 AM UTC-4, Axel Wagner wrote: > > Can you explain more specifically what you don't understand? > The example seems pretty clear: Say you currently require the latest > master commit (e.g. by using a pseudo-version), which is a couple commits > ahead of

Re: [go-nuts] Use of NoMethod type for custom marshaling

2019-09-15 Thread Jake Montgomery
On Sunday, September 15, 2019 at 1:26:06 AM UTC-4, Sathish VJ wrote: > > Yes, that makes sense. Thank you. > > The example I wrote was concocted. But I've seen others do it on their > own types too, which didn't make sense at all. Maybe they were just > copy-pasting similar code from elsewhere

[go-nuts] GAE - Telegram bot stops working after some period of time

2019-09-15 Thread Andreas
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 { >

[go-nuts] Telegram bot stops working afteg some period of time

2019-09-15 Thread cinematown
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 { ca