Skip to content

sschonss/bot-telegram-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is a simple PHP Telegram Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages