-
-
Save mariowhowrites/11aece630dd46bf076087d68abd56b2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/Providers/RouteServiceProvider.php | |
$token = config('telegram.bot_token'); | |
Route::post("$token/webhook", function () { | |
$update = Telegram::commandsHandler(true); | |
return 'ok'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment