https://github.com/ngekoding/turibotphp5
TuriBot for PHP 5
https://github.com/ngekoding/turibotphp5
Last synced: 8 months ago
JSON representation
TuriBot for PHP 5
- Host: GitHub
- URL: https://github.com/ngekoding/turibotphp5
- Owner: ngekoding
- License: agpl-3.0
- Created: 2019-10-01T01:55:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T02:04:02.000Z (over 6 years ago)
- Last Synced: 2025-02-25T01:41:15.522Z (12 months ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TuriBot
> TuriBot is a simple way to communicate with Telegram APIs in PHP
## Edited by @ngekoding for PHP 5
[](https://packagist.org/packages/davtur19/turibot)
[](https://packagist.org/packages/davtur19/turibot)
[](https://packagist.org/packages/davtur19/turibot)
## Requirements
PHP 7.1 or higher with curl extension
## Installation
```sh
composer require davtur19/turibot
```
## Usage
- Look at the examples ([webhook.php](https://github.com/davtur19/TuriBot/blob/master/examples/webhook.php) and [getUpdates.php](https://github.com/davtur19/TuriBot/blob/master/examples/getUpdates.php)), it's very simple if you know PHP and OOP
- All methods have the parameters in the same order as the [BotAPIs](https://core.telegram.org/bots/api#available-methods)
- The `reply_markup` and `permissions` parameters already have a json_encode in the functions, you just need to pass arrays
## Security
https://github.com/php-telegram-bot/core/wiki/Securing-&-Hardening-your-Telegram-Bot
## Contributors
- [andrew-ld](https://github.com/andrew-ld)
## Old version
I don't recommend its use, but it could be useful for those unfamiliar with OOP and would like to start learning how PHP and Telegram Bot Api work.
https://github.com/davtur19/TuriBot/tree/old