diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 06aeafc87..c2440aa55 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -2226,5 +2226,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ktg_about_text1_tdesktop" = "Telegram Desktop"; "ktg_about_text3" = "Visit {channel_link} or {faq_link} for more info."; "ktg_about_text3_channel" = "Kotatogram channel"; +"ktg_copy_btn_callback" = "Copy callback data"; // Keys finished diff --git a/Telegram/SourceFiles/history/history_item_components.cpp b/Telegram/SourceFiles/history/history_item_components.cpp index facdfa388..c3c86ad03 100644 --- a/Telegram/SourceFiles/history/history_item_components.cpp +++ b/Telegram/SourceFiles/history/history_item_components.cpp @@ -376,6 +376,9 @@ QString ReplyMarkupClickHandler::copyToClipboardText() const { if (button->type == Type::Url || button->type == Type::Auth) { return QString::fromUtf8(button->data); } + if (button->type == Type::Callback || button->type == Type::Game) { + return QString::fromUtf8(button->data); + } } return QString(); } @@ -386,6 +389,9 @@ QString ReplyMarkupClickHandler::copyToClipboardContextItemText() const { if (button->type == Type::Url || button->type == Type::Auth) { return tr::lng_context_copy_link(tr::now); } + if (button->type == Type::Callback || button->type == Type::Game) { + return tr::ktg_copy_btn_callback(tr::now); + } } return QString(); }