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

Bot does not process callback_query #1242

Open
l1acy opened this issue Dec 3, 2024 · 3 comments
Open

Bot does not process callback_query #1242

l1acy opened this issue Dec 3, 2024 · 3 comments

Comments

@l1acy
Copy link

l1acy commented Dec 3, 2024

I noticed that my bot does not process callback_query, which is why the inline keyboard doesnt callback(I use TypeScript).

My dependencies:

node-telegram-bot-api 0.58.0
@types/node-telegram-bot-api 0.64.7

My bot config:

const bot = new TelegramBot(token, {polling: true});

My event listener:

bot.on("callback_query", function (callbackQuery) {
    console.log("query: ",callbackQuery);
});

Nothing is output to the console. Not even errors, so callback_query is simply not called.

@1sma31L
Copy link

1sma31L commented Dec 3, 2024

same

@AliceW-03
Copy link

^0.66.0

@strpltnm
Copy link

strpltnm commented Dec 7, 2024

Same.
My app manages several bots at once, callback_query is not processed only for one bot. I already think that telegram is banned on it

I checked the callback on another library - telegraf, specifically this bot. The callbacks worked. I checked again on node-telegram-bot-api - it also works. It's not clear what the problem was.

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

4 participants