Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this version? #59

Closed
dimondubna opened this issue Apr 23, 2024 · 0 comments
Closed

How to use this version? #59

dimondubna opened this issue Apr 23, 2024 · 0 comments

Comments

@dimondubna
Copy link

Hello, i have a fresh setup of laravel 10 and php-telegram-bot/laravel

  • longman/telegram-bot (0.81.0):
  • php-telegram-bot/laravel (v2.1.0):

In .env i provided api_key and username.

In web.php i tried to use this:

use PhpTelegramBot\Laravel\PhpTelegramBotContract;
Route::post('/webhook', function (PhpTelegramBotContract $telegramBot) {
return $telegramBot->handle();
});

But i have an error.

ReflectionException: Class "PhpTelegramBot\Laravel\PhpTelegramBotContract" does not exist in file D:\OpenServer\domains\aml-bot\vendor\laravel\framework\src\Illuminate\Routing\ResolvesRouteDependencies.php on line 81

In previous version (laravel 9 and php-telegram-bot/laravel v 2.0.3) i don`t have such errors. Please, help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant