|
|
@@ -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;');
|