This is a simple PHP Telegram Bot that uses the Telegram Bot API to send messages to a Telegram user.
- PHP 7.0 or higher
- Composer
- A Telegram Bot Token
- Clone this repository
- Run
composer install
- Create a
.env
file in the root directory of the project and add the following:
TELEGRAM_BOT_TOKEN=YOUR_BOT_TOKEN
- Write your message in the class
Message
in the methodgetMessage()
- Run the script with
php index.php
This project is licensed under the MIT License - see the LICENSE file for details.