1
0

2 Revīzijas 28e6795b19 ... 1b0a81c2a1

Autors SHA1 Ziņojums Datums
  Slava Barinov 1b0a81c2a1 [Telegram] Inline keyboard generation for editing added 1 gadu atpakaļ
  Slava Barinov 28e6795b19 [Telegram] Inline keyboard generation for editing added 1 gadu atpakaļ
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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?;
             }
         }