Fixed switch_inline from via message

Close #1174
This commit is contained in:
Igor Zhukov 2016-06-27 19:32:03 +03:00
parent 702533f259
commit d33a4cf53e

View File

@ -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);