Skip to content

Commit

Permalink
Merge pull request #644 from teloxide/dev
Browse files Browse the repository at this point in the history
Merge v0.9.2

Former-commit-id: f83ee50
  • Loading branch information
Hirrolot committed Jun 7, 2022
2 parents 8f70513 + e1aa4a0 commit cc95b67
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
}
}

Expand Down

0 comments on commit cc95b67

Please sign in to comment.