From 157039946fcff8ccca67b5667916c8d091ab18c7 Mon Sep 17 00:00:00 2001 From: AlexeyZavar Date: Wed, 16 Jul 2025 00:33:27 +0300 Subject: [PATCH] fix: allow copying inline button links --- Telegram/SourceFiles/history/history_item_components.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_item_components.cpp b/Telegram/SourceFiles/history/history_item_components.cpp index 87375f1d49..d44484536c 100644 --- a/Telegram/SourceFiles/history/history_item_components.cpp +++ b/Telegram/SourceFiles/history/history_item_components.cpp @@ -705,7 +705,8 @@ auto ReplyMarkupClickHandler::getUrlButton() const -> const HistoryMessageMarkupButton* { if (const auto button = getButton()) { using Type = HistoryMessageMarkupButton::Type; - if (button->type == Type::Url || button->type == Type::Auth || button->type == Type::Callback) { + if (button->type == Type::Url || button->type == Type::Auth || button->type == Type::Callback || + button->type == Type::WebView || button->type == Type::SimpleWebView) { return button; } }