Laravel integration for Telepath
Explore the docs »
Report Bug
Table of Contents
Telepath is a modern framework-agnostic libraray to create Telegram Bots in PHP.
This package integrates a Telepath based bot into your Laravel application being able to receive and respond to Telegram messages your bot receives.
This package can be installed via composer:
composer require telepath/laravel
The package will automatically install the required dependencies to use Telepath in your Laravel application.
You can get the Bot instance via the Telepath facade.
$bot = \Telepath::bot();
or by using autowiring to request an instance.
public function __construct(
protected Telepath\Bot $bot
) {}
For a more detailled look including how to integrate Telepath into your Laravel application please also have a look into our Documentation
Please note that this package currently has the following limitations:
- Handling multiple bots in the same Laravel application is not supported yet.
- Support for Lumen or other Laravel subset frameworks is not officially supported.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.md
for more information.
Tii - @TiiFuchs - mail@tii.one
Project Link: https://github.com/telepath-php/laravel