2 Commits 28e6795b19 ... 1b0a81c2a1

Author SHA1 Message Date
  Slava Barinov 1b0a81c2a1 [Telegram] Inline keyboard generation for editing added 1 year ago
  Slava Barinov 28e6795b19 [Telegram] Inline keyboard generation for editing added 1 year ago
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/telegram.rs

+ 1 - 1
src/telegram.rs

@@ -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
             // Process the selection, e.g., by updating the dialogue state or responding to the user
             let response_message = format!("Editing item {}", item_id);
             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?;
                 bot.send_message(chat_id, response_message).await?;
             }
             }
         }
         }