PHP code example of max13 / telegram-socialite
1. Go to this page and download the library: Download max13/telegram-socialite library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
max13 / telegram-socialite example snippets
'telegram' => [
'client_id' => null,
'client_secret' => env('TELEGRAM_TOKEN'),
'redirect' => '/login/telegram/callback',
]
{!! Socialite::driver('telegram')->getScript() !!}
Socialite::driver('telegram')->user();