mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-23 11:08:13 -05:00
27 lines
610 B
PHP
27 lines
610 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\V1\User;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\User;
|
|
use App\Services\TelegramService;
|
|
use Illuminate\Http\Request;
|
|
|
|
class TelegramController extends Controller
|
|
{
|
|
public function getBotInfo()
|
|
{
|
|
$telegramService = new TelegramService();
|
|
$response = $telegramService->getMe();
|
|
$data = [
|
|
'username' => $response->result->username
|
|
];
|
|
return $this->success($data);
|
|
}
|
|
|
|
public function unbind(Request $request)
|
|
{
|
|
$user = User::where('user_id', $request->user()->id)->first();
|
|
}
|
|
}
|