Merge pull request #644 from teloxide/dev

Merge v0.9.2
This commit is contained in:
Hirrolot 2022-06-07 12:45:59 +06:00 committed by GitHub
commit f83ee50825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## unreleased
## 0.9.2 - 2022-06-07
### Fixed
- Fix Api Unknown error (Can't parse entities) on message created with `utils::markdown::user_mention_or_link` if user full name contaiins some escapable symbols eg '.'
## 0.9.1 - 2022-05-27
### Fixed

View file

@ -1,6 +1,6 @@
[package]
name = "teloxide"
version = "0.9.1"
version = "0.9.2"
edition = "2021"
description = "An elegant Telegram bots framework for Rust"
repository = "https://github.com/teloxide/teloxide"

View file

@ -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())),
}
}