PHPackages                             pulpa/laravel-telegram-bot - 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. [Framework](/categories/framework)
4. /
5. pulpa/laravel-telegram-bot

ActiveLibrary[Framework](/categories/framework)

pulpa/laravel-telegram-bot
==========================

Framework to build Telegram bots

0.1.2(9y ago)016MITPHP

Since Apr 14Pushed 9y agoCompare

[ Source](https://github.com/pulpa/laravel-telegram-bot)[ Packagist](https://packagist.org/packages/pulpa/laravel-telegram-bot)[ RSS](/packages/pulpa-laravel-telegram-bot/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Laravel Telegram Bot
====================

[](#laravel-telegram-bot)

*This is a work in progress, feel free to watch this repo to stay tuned.*

### Requirements

[](#requirements)

- Laravel `5.4+`

### Installation

[](#installation)

Install the package with composer:

```
composer require pulpa/laravel-telegram-bot

```

Add this service provider to your `config/app.php` file:

```
Pulpa\Telegram\Bot\Providers\ServiceProvider::class

```

Create a configuration file in `config/bot.php` and a controller in `app\Http\Controllers\BotController.php` by running the `vendor:publish` artisan command:

```
php artisan vendor:publish --provider="Pulpa\Telegram\Bot\Providers\ServiceProvider"

```

Open `config/bot.php` and set up your bot's name and token.

Once you finish your configuration, your bot's webhook URL will be available at:

```
yourdomain.com/

```

Where `` is obviously the bot token, duh! Open the URL in your web browser and you should see a friendly message.

### Usage

[](#usage)

The method `catchAll()` within your `BotController` class will receive all the updates coming from Telegram to your webhook, it will receive a parameter of type `Pulpa\Telegram\Bot\Update` that is just a simple wrapper of the original update object coming from Telegram.

```
use Pulpa\Telegram\Bot\Update;
use Pulpa\Telegram\Bot\Http\Controllers\Controller;

class BotController extends Controller
{
    public function catchAll(Update $update)
    {
        // Log the text message
        \Log::info($update->message->text);
    }
}
```

Define methods in your `BotController` that will handle the incoming bot commands, for example, method `myBotCommand` will be called when the webhook recieves a command named `my_bot_command`.

```
use App\Chat;
use Pulpa\Telegram\Bot\Update;
use Pulpa\Telegram\Bot\Http\Controllers\Controller;

class BotController extends Controller
{
    public function catchAll(Update $update)
    {
        // ...
    }

    public function start(Update $update)
    {
        // Register a new chat when command "start" is received.
        Chat::register($update->message->chat->id);
    }
}
```

If no method is defined for a command then the method `catchAll()` will be called instead.

*More documentation is in progress*

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

3364d ago

### Community

Maintainers

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

---

Top Contributors

[![sahibalejandro](https://avatars.githubusercontent.com/u/985268?v=4)](https://github.com/sahibalejandro "sahibalejandro (6 commits)")

---

Tags

botlaravelpackagetelegram

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pulpa-laravel-telegram-bot/health.svg)

```
[![Health](https://phpackages.com/badges/pulpa-laravel-telegram-bot/health.svg)](https://phpackages.com/packages/pulpa-laravel-telegram-bot)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M841](/packages/laravel-socialite)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k17.6M521](/packages/laravel-boost)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[laravel/envoy

Elegant SSH tasks for PHP.

1.6k5.8M23](/packages/laravel-envoy)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)

PHPackages © 2026

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