diff --git a/td/telegram/misc.cpp b/td/telegram/misc.cpp index e6d9e944..d2a0abd0 100644 --- a/td/telegram/misc.cpp +++ b/td/telegram/misc.cpp @@ -323,7 +323,7 @@ Result check_url(Slice url) { return PSTRING() << (is_tg ? "tg" : "ton") << "://" << http_url.host_ << query; } - if (url.find('.') == string::npos) { + if (http_url.host_.find('.') == string::npos) { return Status::Error("Wrong HTTP URL"); } return http_url.get_url();