This commit is contained in:
senset 2022-06-29 12:52:45 +08:00
parent af03865ac3
commit 85398a6e84

View File

@ -7,7 +7,7 @@ use crate::{commands::CommandHandler, commands::Commands, config::Args};
use migration::DbErr; use migration::DbErr;
use strfmt::Format; use strfmt::Format;
use teloxide::utils::command::BotCommands; use teloxide::utils::{command::BotCommands, markdown::escape};
use teloxide::{ use teloxide::{
prelude::*, types::ForwardedFrom, types::InlineQueryResult, types::InlineQueryResultArticle, prelude::*, types::ForwardedFrom, types::InlineQueryResult, types::InlineQueryResultArticle,
types::InputMessageContent, types::InputMessageContentText, types::ParseMode, types::InputMessageContent, types::InputMessageContentText, types::ParseMode,
@ -182,7 +182,7 @@ impl BotServer {
message_text: format!( message_text: format!(
"*{}*: {}", "*{}*: {}",
username.trim_start_matches("@"), username.trim_start_matches("@"),
record.message escape(&record.message)
), ),
parse_mode: Some(ParseMode::MarkdownV2), parse_mode: Some(ParseMode::MarkdownV2),
entities: None, entities: None,