Skip to content
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

Receiving unexpected behavior while handling Telegram bot commands #2

Open
dev2060 opened this issue Nov 8, 2018 · 1 comment
Open

Comments

@dev2060
Copy link

dev2060 commented Nov 8, 2018

Hello and thank you for this nice software and tips. Following your instructions I am using AWS Lamba as webhook for all messages that comes to telegram bot.
However I got an issue. For some reason lambda function does not reply on command first time. Telegram user just has no answer. But it replies every next time on previous request.

I will give and example:

I put command 1. Result: no answer.
I put command 2. Result: answer on command 1.
I put command 3. Result: answer on command 2
I put command 4. Result: answer on command 3
and so on... what is going wrong?

@zhewang95
Copy link

zhewang95 commented Dec 8, 2021

For anyone who may encounter same situation. Replace the last line return processCommand; to return {statusCode: 200}; in index.js solve this problem for me. Still don't know why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants