Removed a need for parse_mode to be copy
This commit is contained in:
parent
d52a34d10a
commit
df7a78a1c7
@ -28,7 +28,7 @@ impl MessageIds {
|
|||||||
bot: &Throttle<Bot>,
|
bot: &Throttle<Bot>,
|
||||||
text: impl Into<String>,
|
text: impl Into<String>,
|
||||||
markup: impl Into<Option<InlineKeyboardMarkup>>,
|
markup: impl Into<Option<InlineKeyboardMarkup>>,
|
||||||
parse_mode: impl Into<Option<ParseMode>> + Copy,
|
parse_mode: impl Into<Option<ParseMode>>,
|
||||||
) -> crate::Result<()> {
|
) -> crate::Result<()> {
|
||||||
let mut edit = bot.edit_message_text(self.0, self.1, text);
|
let mut edit = bot.edit_message_text(self.0, self.1, text);
|
||||||
edit.parse_mode = parse_mode.into();
|
edit.parse_mode = parse_mode.into();
|
||||||
|
Loading…
Reference in New Issue
Block a user