mirror of
https://github.com/v2board/v2board.git
synced 2024-11-11 01:59:12 +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
|
||
|
]
|
||
|
]);
|
||
|
}
|
||
|
}
|