This repository is an example Laravel application to start developing Telegram Bot using telegram-bot-sdk.
- Laravel 5.4
- telegram-bot-sdk 3.0 (Develop Branch)
- Create a new bot project using this boilerplate.
composer create-project irazasyed/telegram-bot-laravel-starter my_new_bot
-
Install Laravel Valet and use
valet share
to retrieve a HTTPS URL that you can use it to setup a webhook with Telegram for testing. The predefined route is/bot/webhook
. -
Edit your
.env
file and set your bot token inTELEGRAM_BOT_TOKEN=
-
Modify your bot logic in
app/Controllers/BotController.php
and/orroutes/bot.php
. -
Build some awesome bots and don't forget to list them on our bots showcase.
Read docs to know more about the features and other info.