Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 649 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 649 Bytes

PHP BOT Telegram

This is a simple PHP Telegram Bot that uses the Telegram Bot API to send messages to a Telegram user.

Requirements

  • PHP 7.0 or higher
  • Composer
  • A Telegram Bot Token

Installation

  1. Clone this repository
  2. Run composer install
  3. Create a .env file in the root directory of the project and add the following:
TELEGRAM_BOT_TOKEN=YOUR_BOT_TOKEN
  1. Write your message in the class Message in the method getMessage()
  2. Run the script with php index.php

License

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