From 103e5ed8e96ee697e3a6aa7dfa4d40cfc2d0e109 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 10 Oct 2022 14:37:50 +0200 Subject: [PATCH] Message: Fix share inline bot via button (#2059) --- src/global/actions/api/bots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global/actions/api/bots.ts b/src/global/actions/api/bots.ts index 419ae9d5a..c520a024e 100644 --- a/src/global/actions/api/bots.ts +++ b/src/global/actions/api/bots.ts @@ -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; }