|
@@ -81,15 +81,6 @@ class Home extends Controller
|
|
|
|
|
|
|
|
public function test()
|
|
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;');
|
|
$sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
|
|
|
$res = DB::select($sql);
|
|
$res = DB::select($sql);
|
|
|
return $this->success($res);
|
|
return $this->success($res);
|