mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-09-07 21:21:22 +00:00
Disable broken url detector
This commit is contained in:
parent
15366b8345
commit
d8f48cbd3e
@ -48,7 +48,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
continue;
|
||||
}
|
||||
if let MessageKind::Text { ref data, .. } = message.kind {
|
||||
let is_url = Url::parse(&data).is_ok();
|
||||
let is_url = false; //Url::parse(&data).is_ok(); // TODO: read this data from the Telegram json data (utf16 idxes..)
|
||||
let formatted_text = if is_url {
|
||||
format!("<ul><li><a href=\"{}\">{}</a></li></ul>", data, data)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user