Download the PHP package imafaz/neili without Composer
On this page you can find all versions of the php package imafaz/neili. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor imafaz
Package neili
Short Description neili is a lightweight library for managing and creating automation for telegram api bots
License MIT
Homepage https://github.com/imafaz/neili
Package neili
Short Description neili is a lightweight library for managing and creating automation for telegram api bots
License MIT
Homepage https://github.com/imafaz/neili
Please rate this library. Is it a good library?
Informations about the package neili
lightweight php library for telegram manage bot
neili is a lightweight library for managing and creating automation for telegram api bots.
- Requirements
- Installation
- Quick Start
- Usage
- Available Method
- License
Requirements
This library is supported by PHP versions 7.0 or higher
neili uses the EasyLog version ^1
Installation
The preferred way to install this extension is through Composer.
To install Neili, simply:
$ composer require imafaz/Neili
Quick Start
To use this library with Composer:
Usage
Create an instance of Neili
Send a simple message:
Available Method
- __construct
Atttribute | Description | Type | Required | Default |
---|---|---|---|---|
$accessToken | telegram bot access token | string | yes | null |
# Return (void)
If you don't find the method you need, you can use below:
- methods: TELEGRAM DOCUMENT
- example: tests/customMethod.php
- custom method
Atttribute | Description | Type | Required | Default |
---|---|---|---|---|
$parameters | telegram required params | array | yes | null |
# Return (array)
- handleUpdate
Atttribute | Description | Type | Required | Default |
---|---|---|---|---|
$secret | wenhook secret token | string | no | null |
# Return (array)
- sendMessage
Atttribute | Description | Type | Required | Default |
---|---|---|---|---|
$chatId | telegram user/group/channel uniq id | int | yes | null |
$message | you need message | string | yes | null |
$keyboard | json keyboard | string | no | null |
$params | custom parameters | array | no | null |
# Return (array)
- keyboard
Atttribute | Description | Type | Required | Default |
---|---|---|---|---|
$buttons | you need buttons | array | yes | null |
$raw | button count per raw | int | yes | 2 |
$resize | resize keyboard | bool | yes | false |
# Return (json)
- inlineKeyboard
Atttribute | Description | Type | Required | Default |
---|---|---|---|---|
$buttons | you need buttons | array | yes | null |
$raw | button count per raw | int | yes | 2 |
# Return (json)
License
- This script is licensed under the MIT License.
All versions of neili with dependencies
PHP Build Version
Package Version
The package imafaz/neili contains the following files
Loading the files please wait ....