update telegram

This commit is contained in:
Tokumeikoi
2020-05-19 16:32:35 +08:00
parent ca650dd067
commit ce19ebc97f
5 changed files with 37 additions and 22 deletions

View File

@ -0,0 +1,20 @@
<?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
]
]);
}
}