Browse Source

Disable error handling for bot callbacks

Close #1156
Close #1133
Close #1129
master
Igor Zhukov 9 years ago
parent
commit
4a04a85ac5
  1. 2
      app/js/services.js

2
app/js/services.js

@ -2663,7 +2663,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
peer: AppPeersManager.getInputPeerByID(peerID), peer: AppPeersManager.getInputPeerByID(peerID),
msg_id: AppMessagesManager.getMessageLocalID(id), msg_id: AppMessagesManager.getMessageLocalID(id),
data: button.data data: button.data
}).then(function (callbackAnswer) { }, {timeout: 1, stopTime: -1, noErrorBox: true}).then(function (callbackAnswer) {
if (typeof callbackAnswer.message != 'string' || if (typeof callbackAnswer.message != 'string' ||
!callbackAnswer.message.length) { !callbackAnswer.message.length) {
return; return;

Loading…
Cancel
Save