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

UnhandledPromiseRejectionWarning: Unhandled promise rejection #47

Closed
stakost opened this issue Mar 7, 2017 · 2 comments
Closed

UnhandledPromiseRejectionWarning: Unhandled promise rejection #47

stakost opened this issue Mar 7, 2017 · 2 comments

Comments

@stakost
Copy link

stakost commented Mar 7, 2017

Hi!

I use that method bot.on('callbackQuery', (msg) => {...}) to update inlineButtons, but if set same buttons like last time - I catch nodejs error:
(node:11721) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object] (node:11721) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Could you help to resolve this issue?

@stakost
Copy link
Author

stakost commented Mar 7, 2017

О! Сразу не заметил что русскоговорящий разработчик :)

Спасибо за АПИ бота!

Есть одна проблема, я создаю inline-кнопки (bot.inlineButton('Мой логин', {callback: 'settings.login'})), нажатие на которые слушают коллбэки. В ответ происходит обновление этих кнопок через метод editText. Если при очередном ответе кнопки не изменились - то node.js шлет ошибку.

@kosmodrey
Copy link
Contributor

Привет! Можно посмотреть на пример кода?

@mullwar mullwar closed this as completed May 4, 2017
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

3 participants