mirror of
https://github.com/v2board/v2board.git
synced 2024-11-15 00:09:13 +08:00
21 lines
441 B
PHP
21 lines
441 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\User;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\TelegramService;
|
|
|
|
class TelegramController extends Controller
|
|
{
|
|
public function getBotInfo()
|
|
{
|
|
$telegramService = new TelegramService();
|
|
$response = $telegramService->getMe();
|
|
return response([
|
|
'data' => [
|
|
'username' => $response->result->username
|
|
]
|
|
]);
|
|
}
|
|
}
|