Telegram Bot SDK Laravel Starter Project
This package is auto-updated.
Last update: 2021-01-16 20:14:00 UTC
Laravel starter for Telegram Bot SDK.
It comes with sample code to get you started developing Telegram Bots in Laravel.
- Updates Polling.
- Event Listener.
- Create a new bot project using this starter project.
composer create-project telegram-bot-sdk/laravel-starter mybot
Install Laravel Valet and use
valet secure && valet shareto retrieve a HTTPS URL that you can use it to setup a webhook with Telegram for testing.
.envfile and set your bot token in
TELEGRAM_BOT_TOKEN=&& ngrok hostname in
Setup the webhook with Telegram by firing the artisan command
php artisan telegram:webhook:setup.
appdirectory for some examples.
Build awesome bots and don't forget to list them on our Awesome Telegram Bots list.
Read docs to learn more about Telegram Bot SDK.
If you've fired the above webhook setup artisan command, then a webhook will automatically be set with Telegram.
The webhook URL looks like:
Incoming webhook requests from Telegram will automatically be verified, processed, and acknowledged to Telegram for you. You can listen to various events the SDK dispatches to process inbound updates. You'll find an example in this repo as you explore.
The Laravel Starter is open-sourced software licensed under the MIT license.