do you have documentation that states that telegram will use POST request?
Probelm Creating Post Routes for Telegram Webhook
Hello, I'm new to PHP/Laravel and so please bear with me solving my problem . I'm Trying to set a Telegram bot webhook , so this is my route in web.php :
Route::post('{token}/webhook', function () { $updates = Telegram::getWebhookUpdate(); return 'ok'; });
but i receive error on this route : " The GET method is not supported for route /bot-token/webhook. Supported methods: POST " ( I used post method but the error is not clear and say Get method is not supported !! )
And i have this situation on my Telegram webhook :
{"ok":true,"result":{"url":"https://siteurl.site/token/webhook","has_custom_certificate":false,"pending_update_count":58,"last_error_date":1698503113,"last_error_message":"Wrong response from the webhook: 500 Internal Server Error","max_connections":40,"ip_address":"IP"}}
I Tested another post routes and found out all the Post routes face this type of error .
So i feel stuck up . Any Recommendation will be appreciated .
Laravel Ver 10
Please or to participate in this conversation.