Removed a need for parse_mode to be copy

This commit is contained in:
StNicolay committed 2023-08-12 16:29:03 +03:00
1 parent d52a34d10a
commit df7a78a1c7
1 file changed
+1 -1
+1 -1
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();