PHPackages                             laraxgram/laraquest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. laraxgram/laraquest

ActiveLibrary[HTTP &amp; Networking](/categories/http)

laraxgram/laraquest
===================

Sending requests and receiving Telegram updates.

v1.7.2(3w ago)1337711MITPHP

Since Apr 6Pushed 3w ago1 watchersCompare

[ Source](https://github.com/laraXgram/Laraquest)[ Packagist](https://packagist.org/packages/laraxgram/laraquest)[ RSS](/packages/laraxgram-laraquest/feed)WikiDiscussions 1.x.x Synced 3d ago

READMEChangelog (10)DependenciesVersions (41)Used By (1)

Laraquest
=========

[](#laraquest)

Sending requests and receiving Telegram updates.

Other Versions
--------------

[](#other-versions)

- [Laraquest GoLang](https://github.com/laraXgram/Laraquest-Go)
- Laraquest Python
- Laraquest JavaScript
- Laraquest Rust
- Laraquest C#

Installation:
-------------

[](#installation)

```
composer require laraxgram/laraquest
```

---

Config:
-------

[](#config)

```
$_ENV["BOT_TOKEN"] = "123456789:ABcdEfGHigKLMnopQrStuvWXYZ"; // required
$_ENV["BOT_API_SERVER"] = "https://api.telegram.org/"; // default-optional

// Polling
$_ENV["sleep_interval"] = 0.5; // default-optional
$_ENV["timeout"] = 100; // default-optional
$_ENV["limit"] = 100; // default-optional
$_ENV["allow_updates"] = ["*"]; // default-optional
```

---

Usage:
------

[](#usage)

#### Methods:

[](#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!

#### Updates:

[](#updates)

```
use LaraGram\Laraquest\Updates;

class MyBotClass {
    use Updates;
}

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

---

#### Both:

[](#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!');
```

### Long Polling

[](#long-polling)

```
Laraquest::polling(function(Laraquest $request){
    $request->sendMessage($request->message->chat->id, "Hello, Laraquest!")
});
```

### Multi Connection

[](#multi-connection)

```
$_ENV['CONNECTIONS']['first_bot']['BOT_TOKEN'] = 'XXX';
$_ENV['CONNECTIONS']['second_bot']['BOT_TOKEN'] = 'YYY';

$first_bot = $bot->connection('first_bot');
$second_bot = $bot->connection('second_bot');

$first_bot->sendMessage(...);
$second_bot->deleteMessage(...);

$first_bot->getConnection(); // first_bot
```

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance94

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~28 days

Total

40

Last Release

26d ago

Major Versions

v0.9.2 → v1.0.02025-02-12

0.x-dev → v1.1.02025-04-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/138247097?v=4)[LaraGram](/maintainers/laraXgram)[@laraXgram](https://github.com/laraXgram)

---

Top Contributors

[![AmirHkrg](https://avatars.githubusercontent.com/u/82036027?v=4)](https://github.com/AmirHkrg "AmirHkrg (73 commits)")[![ThevenRexOff](https://avatars.githubusercontent.com/u/87929242?v=4)](https://github.com/ThevenRexOff "ThevenRexOff (3 commits)")

---

Tags

laragramlaraquesttelegramtelegram-apitelegram-bottelegram-bot-apiphplaravelbottelegramlaragramlaraquest

### Embed Badge

![Health badge](/badges/laraxgram-laraquest/health.svg)

```
[![Health](https://phpackages.com/badges/laraxgram-laraquest/health.svg)](https://phpackages.com/packages/laraxgram-laraquest)
```

###  Alternatives

[basement-chat/basement-chat

Add a real-time chat widget to your Laravel application.

4984.0k](/packages/basement-chat-basement-chat)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

161.5k1](/packages/openapi-openapi-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
