laraXgram / Laraquest

Sending requests and receiving Telegram updates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laraquest

Installation:

composer require laraxgram/laraquest

Usage:

Use Methods:

Just use trait Method in your class!

use LaraGram\Laraquest\Methode;

class MyBotClass {
    use Methode;
}

$bot = new MyBotClass();
$bot->sendMessage(123456789, 'hello!');

Just use trait Updates in your class!

Use Updates:

use LaraGram\Laraquest\Updates;

class MyBotClass {
    use Updates;
}

$bot = new MyBotClass();
$chatID = $bot->message->chat->id;

Use Both:

Just use trait Method and Updates in your class!

use LaraGram\Laraquest\Methode;
use LaraGram\Laraquest\Updates;

class MyBotClass {
    use Methode, Updates;
}

$bot = new MyBotClass();
$bot->sendMessage($bot->message->chat->id, 'hello!');

About

Sending requests and receiving Telegram updates.

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%