|
|
@@ -692,7 +692,7 @@ async fn callback_handler(q: CallbackQuery, bot: Bot, dialogue: QIFDialogue) ->
|
|
|
|
|
|
// Process the selection, e.g., by updating the dialogue state or responding to the user
|
|
|
let response_message = format!("Editing item {}", item_id);
|
|
|
- if let Some(chat_id) = q.message.and_then(|msg| Some(msg.chat.id)) {
|
|
|
+ if let Some(chat_id) = q.message.clone().and_then(|msg| Some(msg.chat.id)) {
|
|
|
bot.send_message(chat_id, response_message).await?;
|
|
|
}
|
|
|
}
|