telegram-bot-sdk / laravel

Laravel Package for Telegram Bot SDK
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
21 stars 6 forks source link

[Bug]: Route [telegram.bot.webhook] not defined. #14

Open bigperson opened 1 month ago

bigperson commented 1 month ago

PHP version

8.3

Telegram Bot SDK version

dev-main

Laravel version (if any)

11.7

What happened?

php artisan telegram:webhook:setup Setting webhook for [default] bot! Route [telegram.bot.webhook] not defined.

Code To Reproduce the bug

php artisan telegram:webhook:setup

Error stacktrace (if any)

No response

Additional Context

No response

Possible Solution

No response

jonnywilliamson commented 4 weeks ago

I have seen this before. The problem is the telegram/larave service provider is deferrred

If you cache the routes it should work

artisan route:cache