Ken hace 4 días
padre
commit
5e961ebca1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Http/Controllers/api/Home.php

+ 2 - 1
app/Http/Controllers/api/Home.php

@@ -97,7 +97,8 @@ class Home extends Controller
 
         $chat = $telegram->getChat(['chat_id' => $chatId]);
         $topMessage = $chat->getPinnedMessage(); // 获取当前的置顶消息
-        $telegram->unpinMessage([
+
+        $telegram->unpinChatMessage([
             'chat_id' => $chatId,
             'message_id' => $topMessage->getMessageId(),
         ]);