Ken 5 днів тому
батько
коміт
9f7c152fe1
1 змінених файлів з 0 додано та 9 видалено
  1. 0 9
      app/Http/Controllers/api/Home.php

+ 0 - 9
app/Http/Controllers/api/Home.php

@@ -81,15 +81,6 @@ class Home extends Controller
 
     public function test()
     {
-        $telegram = new Api(config('services.telegram.token'));
-//        $chatId = '@GGGBBBB1';
-//        $chat = $telegram->getChat(['chat_id' => $chatId]);
-//        $topMessage = $chat->getPinnedMessage(); // 获取当前的置顶消息
-//        取消置顶
-//        $telegram->unpinChatMessage([
-//            'chat_id' => $chatId,
-//            'message_id' => $topMessage->getMessageId(),
-//        ]);
         $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
         $res = DB::select($sql);
         return $this->success($res);