yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.45k stars 1.53k forks source link

ETELEGRAM: 400 Bad Request: poll can't be stopped #830

Closed qadirsuh closed 3 years ago

qadirsuh commented 4 years ago

Question

Hi everyone,

can some one answer my question on stackoverflow please

https://stackoverflow.com/questions/64062772/etelegram-400-bad-request-poll-cant-be-stopped

qadirsuh commented 3 years ago

Reply from stackoverflow that solved my problem.

I'm not sure but I believe it's a bug on Telegram Bot API's implementation when dealing with ForceReply markup (because the other reply_markup options like inline buttons work just fine). Remove that markup and it should work just fine.

...
const opts = {
    'is_anonymous': false,
    'allows_multiple_answers': true,
    // 'reply_markup': reply_markup // remove this
};