What can this bot do❔
If you want to run this code on your local machine you should install and run XAMPP/MAMP dependind on your OS. You can follow this link to get the idea of how to install them on your local machine and run a simple PHP code:
http://www.dwuser.com/education/content/why-you-need-a-testing-server-and-how-to-do-it/
Thanks to Dana Winslow for her great Article!😊
If you want to run this code on your own server you should have a server capable of running PHP +5 code.
Follow these steps to set-up & test your bot:
1- Setup your bot with @BotFather (You can follow the link below) :
http://telegra.ph/Set-up-your-bot-with-BotFather-09-06
2- After you received your bot authorization token JUST SAVE IT SOMEWHERE!!😁
3- Prepare a SSL server for your .PHP file (It should be like https://example.com)
4- Set Webhook for your bot by following this link:
https://api.telegram.org/bot<token>/setWebhook?url=https://mywebsite.com/path/to/giveawaysbot.php
5- Happy Coding!😉 You can easilly test this file on your own server
- PHP: Hypertext Preprocessor
- Telegram Bot API
- PhpStorm: Lightning-Smart IDE for PHP Programming by JetBrains
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Tadeh Alexani - Initial work - TadehA
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone who's code was used
- Inspiration
- etc