Message: Fix share inline bot via button (#2059)

This commit is contained in:
Alexander Zinchuk 2022-10-10 14:37:50 +02:00
parent 8186401be4
commit 103e5ed8e9

View File

@ -282,7 +282,7 @@ addActionHandler('switchBotInline', (global, actions, payload) => {
return undefined;
}
const botSender = selectChatBot(global, message.senderId!);
const botSender = selectUser(global, message.viaBotId || message.senderId!);
if (!botSender) {
return undefined;
}