Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sschonss/bot-telegram-php

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

AltStyle によって変換されたページ (->オリジナル) /