PHPackages                             ricardofontanelli/laravel-telegram - 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. [API Development](/categories/api)
4. /
5. ricardofontanelli/laravel-telegram

ActiveLibrary[API Development](/categories/api)

ricardofontanelli/laravel-telegram
==================================

A simple and lightweight Laravel 4 and 5 wrapper to interact with Telegram Bot.

1.2(8y ago)103.6k↓100%3[1 PRs](https://github.com/ricardofontanelli/laravel-telegram/pulls)MITPHPPHP &gt;=5.3.0

Since Feb 15Pushed 3y ago1 watchersCompare

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

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

LaravelTelegram
===============

[](#laraveltelegram)

A simple and lightweight Laravel 4.2 and Laravel 5.\* wrapper to interact with Telegram Bot.

Get Started:
------------

[](#get-started)

- First of all, you should create a Telegram Bot, you can use [Bot Father](https://core.telegram.org/bots#6-botfather) to do that;
- Create a Telegram chat room (group) and add the Bot to this group, now the Bot can send messages!
- After publish the package, open the telegram config file and provide all the required information.

Installation
------------

[](#installation)

1. The Laravel Telegram Service Provider can be installed via ...

```
composer require ricardofontanelli/laravel-telegram:1.0
```

or [Composer](http://getcomposer.org) by requiring the `ricardofontanelli/laravel-telegram` package in your project's `composer.json`

```
{
    "require": {
        "ricardofontanelli/laravel-telegram": "1.0"
    }
}
```

Then run a composer update

```
php composer update
```

2. To use the Laravel Telegram Service Provider, you must register the provider when bootstrapping your application. If you are using Laravel &gt;= 5.5, the package supports Automatic Package Discovery, skip to the step 3.

In Laravel find the `providers` key in your `config/app.php` and register the Laravel Telegram Service Provider.

```
    'providers' => array(
        // ...
        'RicardoFontanelli\LaravelTelegram\TelegramServiceProvider',
    )
```

Find the `aliases` key in your `config/app.php` and add the Laravel Telegram facade alias.

```
    'aliases' => array(
        // ...
        'Telegram' => 'RicardoFontanelli\LaravelTelegram\TelegramFacade',
    )
```

3. After that, run the command above to publish the Telegram config file, you must provide your Telegram Bot credentials and chat room information.

Publishing the package
----------------------

[](#publishing-the-package)

Now, you should publish the package to generate the config file, after that, edit the config file with your Telegram Bot credentials.

### Laravel 4.2

[](#laravel-42)

The config file will be generate here: `app/config/packages/ricardofontanelli/laravel-telegram/config.php`

```
php artisan config:publish ricardofontanelli/laravel-telegram
```

### Laravel 5.\*

[](#laravel-5)

The config file will be generate here: `app/config/telegram.php`

```
php artisan vendor:publish --provider="RicardoFontanelli\LaravelTelegram\TelegramServiceProvider"
```

### Send a message:

[](#send-a-message)

Now you can use it by `php artisan tinker` and run:

```
// Send a message
Telegram::sendMessage('default', 'Here we go!');
// or async
Telegram::async()->sendMessage('default', 'Here we go!');
```

The first value is the config key name of the chat/group id where the Bot will publicate the message, you can provide the chat/group id directly.

### Get information about the Bot:

[](#get-information-about-the-bot)

```
// Send an async message
Telegram::getMe()->getResult();
```

### Get Bot update:

[](#get-bot-update)

```
// Send an async message
Telegram::getUpdates()->getResult();
```

### Other methods:

[](#other-methods)

The class has use a magic method to call unsuported methods:

```
$params = ['method'=>'GET'];
Telegram::getWebhookInfo($params)->getResult()
```

You can use the variable `$params` to send query parameters and define the HTTP method (according the Telegram Bot Api documentation).

Find more:
----------

[](#find-more)

You can find more here (Telegram Bot API)\[\], but if you need to call a method that the class doesn't support, feel free to send a PR.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~176 days

Total

3

Last Release

3020d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0fc9f12b769df066037b302556fcd47396a88469dc2f38228682c466683b517?d=identicon)[ricardofontanelli](/maintainers/ricardofontanelli)

---

Top Contributors

[![ricardofontanelli](https://avatars.githubusercontent.com/u/5155786?v=4)](https://github.com/ricardofontanelli "ricardofontanelli (16 commits)")[![Max13](https://avatars.githubusercontent.com/u/531249?v=4)](https://github.com/Max13 "Max13 (4 commits)")

---

Tags

botcomposerfacadelaravel-4-packagelaravel-5-packagelaravel-telegrampackagephpprovidertelegramtelegram-botlaravelproviderservice providerfacadelaravel 5messagesbottelegramLaravel 4

### Embed Badge

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

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

###  Alternatives

[irazasyed/telegram-bot-sdk

The Unofficial Telegram Bot API PHP SDK

3.3k4.5M84](/packages/irazasyed-telegram-bot-sdk)[php-telegram-bot/laravel

Integrates PHP Telegram Bot into Laravel.

1869.0k](/packages/php-telegram-bot-laravel)[claude-php/claude-php-sdk-laravel

Laravel integration for the Claude PHP SDK - Anthropic Claude API

5010.8k](/packages/claude-php-claude-php-sdk-laravel)[exileed/telegram-bot-api

The Telegram Bot API PHP

1614.1k](/packages/exileed-telegram-bot-api)

PHPackages © 2026

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