Replies: 1 comment
-
Routes: Route::post('/<secret_token>/webhook', 'TelegramController@webhook'); Controller: <?php
namespace App\Http\Controllers;
use Telegram\Bot\Laravel\Facades\Telegram;
class TelegramController extends Controller
{
public function webhook()
{
$update = Telegram::commandsHandler(true);
return response('Ok');
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Do you have any code examples in laravel controllers, I just don't understand how this is supposed to work.
Beta Was this translation helpful? Give feedback.
All reactions