An open API service indexing awesome lists of open source software.

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

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

[![Latest Stable Version](https://poser.pugx.org/davtur19/turibot/v/stable)](https://packagist.org/packages/davtur19/turibot)
[![Total Downloads](https://poser.pugx.org/davtur19/turibot/downloads)](https://packagist.org/packages/davtur19/turibot)
[![License](https://poser.pugx.org/davtur19/turibot/license)](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