Ken hai 2 días
pai
achega
5e961ebca1
Modificáronse 1 ficheiros con 2 adicións e 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(),
         ]);