Ken 2 天之前
父节点
当前提交
e11a5aef56
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/api/Home.php

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

@@ -83,7 +83,7 @@ class Home extends Controller
     {
         $telegram = new Api(config('services.telegram.token'));
         $chatId = '@GGGBBBB1'; // 目标聊天的ID
-        $chat = $telegram->getChat($chatId);
+        $chat = $telegram->getChat(['chat_id' => $chatId]);
         $topMessage = $chat->getPinnedMessage(); // 获取当前的置顶消息
         return $this->success($topMessage);
 //        $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');