diff --git a/td/telegram/ReplyMarkup.cpp b/td/telegram/ReplyMarkup.cpp index 97cd65ba8..dcdc714a3 100644 --- a/td/telegram/ReplyMarkup.cpp +++ b/td/telegram/ReplyMarkup.cpp @@ -450,7 +450,7 @@ static Result get_keyboard_button(tl_object_ptrurl_, true, true); + auto r_url = LinkManager::check_link(button_type->url_, true, !G()->is_test_dc()); if (r_url.is_error()) { return Status::Error(400, "Inline keyboard button web app URL is invalid"); } @@ -572,7 +572,7 @@ static Result get_inline_keyboard_button(tl_object_ptrurl_, true, true); + auto r_url = LinkManager::check_link(button_type->url_, true, !G()->is_test_dc()); if (r_url.is_error()) { return Status::Error(400, "Inline keyboard button web app URL is invalid"); }