Removed a need for parse_mode to be copy

This commit is contained in:
StNicolay 2023-08-12 16:29:03 +03:00
parent d52a34d10a
commit df7a78a1c7
Signed by: StNicolay
GPG Key ID: 9693D04DCD962B0D

View File

@ -28,7 +28,7 @@ impl MessageIds {
bot: &Throttle<Bot>,
text: impl Into<String>,
markup: impl Into<Option<InlineKeyboardMarkup>>,
parse_mode: impl Into<Option<ParseMode>> + Copy,
parse_mode: impl Into<Option<ParseMode>>,
) -> crate::Result<()> {
let mut edit = bot.edit_message_text(self.0, self.1, text);
edit.parse_mode = parse_mode.into();