irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
2.99k stars 661 forks source link

Laravel 5.5: Telegram Class doesn't exist #488

Closed feralheart closed 6 years ago

feralheart commented 6 years ago

I have two project where I want to use this SDK. One is Laravel 5.4 the second is Laravel 5.5. With Laravel 5.4 the message sending goes smoothly, but with the Laravel 5.5 I got the following error: telegram What can be the problem?

irazasyed commented 6 years ago

What version of the SDK are you using?

jonnywilliamson commented 6 years ago

image

Have just installed a 100% new copy of Laravel 5.5, and the latest commit on dev-develop

composer require irazasyed/telegram-bot-sdk dev-develop

And the SDK is working fine. Sending messages with no errors at all.

Can you check your code again?

aso824 commented 6 years ago

Did you enabled facade? If not, you can't use Telegram:: methods.