This project is based on the @DurgerKing, and it's about a bot that allows you to order food from restaurants.
You can try this bot at @DurgerKingExampleBot.
- Clone the repository and install the dependencies.
git clone https://github.com/telegram-bot-php/durger-king.git
cd durger-king && composer install
- Use
.env.example
as a template to create a.env
file and fill it with your data.
TELEGRAM_BOT_TOKEN
is the token of your bot, which you can get from @BotFather.ADMIN_CHAT_ID
is the chat id of the user that will receive the orders, which you can get from @userinfobot.REMOTE_BASE_PATH
the base path of the project, which you can use your domain name or the IP address of the server.REMOTE_URI
if source code is not in the root of the domain, you can specify the path here.
-
Upload project to your server and set the with direct path to the
service.php
file. -
Please make sure that webhook is set correctly.
- Your webhook should be set to
https://<your-domain>/telegram
.
- Your webhook should be set to
-
Enjoy! 🎉
This project is licensed under the MIT License - see the LICENSE file for details.