From cb5fa352697f543d67f9925672bee3049bb87963 Mon Sep 17 00:00:00 2001 From: Florian Zevedei Date: Tue, 30 Jan 2024 16:07:08 +0100 Subject: [PATCH] Fix #60 --- TelegramBotBase/Controls/Hybrid/ButtonGrid.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TelegramBotBase/Controls/Hybrid/ButtonGrid.cs b/TelegramBotBase/Controls/Hybrid/ButtonGrid.cs index ca0a895..bc06b06 100644 --- a/TelegramBotBase/Controls/Hybrid/ButtonGrid.cs +++ b/TelegramBotBase/Controls/Hybrid/ButtonGrid.cs @@ -426,8 +426,6 @@ public class ButtonGrid : ControlBase return; } - await result.ConfirmAction(ConfirmationText ?? ""); - ButtonRow match = null; var index = -1; @@ -462,6 +460,8 @@ public class ButtonGrid : ControlBase check: if (match != null) { + await result.ConfirmAction(ConfirmationText ?? ""); + await OnButtonClicked(new ButtonClickedEventArgs(match.GetButtonMatch(result.RawData, false), index, match));