Skip to content

A simple example to Telegram web-apps with JavaScript & PHP

License

Notifications You must be signed in to change notification settings

telegram-bot-php/durger-king

Repository files navigation

Durger King

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.

Installation

  1. Clone the repository and install the dependencies.
git clone https://github.com/telegram-bot-php/durger-king.git
cd durger-king && composer install
  1. 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.
  1. Upload project to your server and set the with direct path to the service.php file.

  2. Please make sure that webhook is set correctly.

    • Your webhook should be set to https://<your-domain>/telegram.
  3. Enjoy! 🎉

Links

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A simple example to Telegram web-apps with JavaScript & PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published