-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The echo bot ignores the 1st message and replies to the 2nd, 4th, 6th, etc message #11
Comments
Hey, thanks for reporting the issue! Do you use the webhook version or the long-pull version? I just tested |
The long-pull version I guess, because I haven't exposed anything over the network. I only added a key to |
I tried your bot - are you maybe running behind something that could delay your HTTP requests? Can you try replacing the two calls to |
This shows the example how the first "i" has no response, but when "j" arrives, "i" is replied back. I noticed that when I press ctrl+C, it says "Closing…" and does nothing, does not return. But when I send it a message (while it is in the closing state), it immediately exits (after receiving a message). |
About the closing: That is the usual behavior, comes from the long polling we do with the Telegram API: We send a request About your logs: Yes, that's what I expected - the call to send a message is blocked for some reason. After diggin into this a bit it seems like |
go-resty/resty#29 is what introduced the change. |
You can try the |
The |
I compiled the echo bot example and it looks like this:
me: msg1
[no response from bot for a couple seconds]
me: msg2
bot: msg1 [immediate answer]
bot: msg2
me: msg3
[9 minutes pass]
bot: msg3
I would expect that the bot would answer right away to the 1st message.
The text was updated successfully, but these errors were encountered: