Ken 4 өдөр өмнө
parent
commit
5e961ebca1

+ 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(),
         ]);