PHP code example of xtodx / telegram-socialite

1. Go to this page and download the library: Download xtodx/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/ */

    

xtodx / 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();