We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
First install Laravel environment. Add to your comporser.json under require section: "longman/telegram-bot": "*" You should obtain something like:
"longman/telegram-bot": "*"
{ "require": { "longman/telegram-bot": "*" } }
then run composer update (only update a specific package):
composer update
composer update longman/telegram-bot
Add the namespace for the bot class under "autoload" "psr-4" in composer.json:
"Longman\\TelegramBot\\": "vendor/longman/telegram-bot/src"
You should obtain something like this:
"autoload": { "psr-4": { "App\\": "app/", "Longman\\TelegramBot\\": "vendor/longman/telegram-bot/src" } }
then run:
composer dump-autoload
Done! Now you can use Bot classes inside Laravel and vice versa.