mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
parent
13afc9614e
commit
70f831e4c0
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ pub fn escape_code(s: &str) -> String {
|
|||
pub fn user_mention_or_link(user: &User) -> String {
|
||||
match user.mention() {
|
||||
Some(mention) => mention,
|
||||
None => link(user.url().as_str(), &user.full_name()),
|
||||
None => link(user.url().as_str(), &escape(&user.full_name())),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue