From d33a4cf53e1c0a0ab8276bd675ae604f41affaf8 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 27 Jun 2016 19:32:03 +0300 Subject: [PATCH] Fixed switch_inline from via message Close #1174 --- app/js/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index 0b213108..95700287 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -2634,7 +2634,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) function switchInlineButtonClick(id, button) { var message = AppMessagesManager.getMessage(id); - var botID = message.fromID; + var botID = message.viaBotID || message.fromID; return checkSwitchReturn(botID).then(function (retPeerString) { if (retPeerString) { return switchInlineQuery(botID, retPeerString, button.query);