2 Achegas 28e6795b19 ... 1b0a81c2a1

Autor SHA1 Mensaxe Data
  Slava Barinov 1b0a81c2a1 [Telegram] Inline keyboard generation for editing added hai 1 ano
  Slava Barinov 28e6795b19 [Telegram] Inline keyboard generation for editing added hai 1 ano
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
             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?;
             }
         }