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

answerCallbackQuery with cache_time #266

Closed
skynet-cloud opened this issue Aug 22, 2022 · 2 comments
Closed

answerCallbackQuery with cache_time #266

skynet-cloud opened this issue Aug 22, 2022 · 2 comments
Labels

Comments

@skynet-cloud
Copy link

skynet-cloud commented Aug 22, 2022

Caught exception in sender node: Error: ETELEGRAM: 400 Bad Request: query is too old and response timeout expired or query ID is invalid when processing message

I need Set cache_time but rour lib not supported

https://core.telegram.org/bots/api#answercallbackquery

case 'answerCallbackQuery': if (this.hasContent(msg)) { // The new signature expects one object instead of three arguments. let callbackQueryId = msg.payload.callbackQueryId; let options = { callback_query_id: callbackQueryId, text: msg.payload.content, show_alert: msg.payload.options, }; node.telegramBot .answerCallbackQuery(callbackQueryId, options) .catch(function (ex) { node.processError(ex, msg, nodeSend, nodeDone); }) .then(function (result) { node.processResult(result, msg, nodeSend, nodeDone); }); } break;

@windkh
Copy link
Owner

windkh commented Aug 23, 2022

You are correct. This is a problem which needs to be fixed: instead of assigning the options to show_alert it should contain all options in future:
show_alert: msg.payload.options

@windkh windkh added the bug label Aug 23, 2022
@windkh windkh closed this as completed in 99985c4 Aug 28, 2022
@windkh
Copy link
Owner

windkh commented Aug 28, 2022

please test 13.0.0

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

No branches or pull requests

2 participants