Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sschonss/bot-telegram-php
This is a simple PHP Telegram Bot
https://github.com/sschonss/bot-telegram-php
Last synced: 26 days ago
JSON representation
This is a simple PHP Telegram Bot
- Host: GitHub
- URL: https://github.com/sschonss/bot-telegram-php
- Owner: sschonss
- License: mit
- Created: 2024-03-27T13:36:45.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-11-06T16:21:33.000Z (3 months ago)
- Last Synced: 2024-11-13T02:13:36.495Z (3 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP BOT Telegram
This is a simple PHP Telegram Bot that uses the [Telegram Bot API](https://core.telegram.org/bots/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
```4. Write your message in the class `Message` in the method `getMessage()`
5. Run the script with `php index.php`## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.