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

ActiveLibrary[API Development](/categories/api)

uziins/laravel-telegram-bot
===========================

Integrates PHP Telegram Bot into Laravel.

011PHP

Since Jan 13Pushed 3y agoCompare

[ Source](https://github.com/uziins/laravel-telegram-bot)[ Packagist](https://packagist.org/packages/uziins/laravel-telegram-bot)[ RSS](/packages/uziins-laravel-telegram-bot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-telegram-bot)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bb1d8d5fdb1fcb50cae5216904535d554dc71b785a5cd5223781842a75ad150f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068702d74656c656772616d2d626f742f6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php-telegram-bot/laravel)[![Total Downloads](https://camo.githubusercontent.com/d7d4424038e1cd17ee26d365b7bd968a4ab8b8ada1c81198c829547d83b2b8ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d74656c656772616d2d626f742f6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php-telegram-bot/laravel)

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

[](#installation)

Install this package through Composer. Run this command in your project's terminal:

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

Usage
-----

[](#usage)

For further basic configuration of this Laravel package you do not need to create any configuration files.

Database migration

```
php artisan migrate
```

Publish config file

```
php artisan vendor:publish --tag="telegram-config"
```

Publish routes file

```
php artisan vendor:publish --tag="telegram-routes"
```

Artisan terminal commands for the Webhook usage (remember, that you need an HTTPS server for it):

```
# Use this method to specify a url and receive incoming updates via an outgoing webhook
php artisan telegram:set-webhook
# List of available options:
# --d|drop-pending-updates : Drop all pending updates
# --a|all-update-types : Explicitly allow all updates (including "chat_member")
# --allowed-updates= : Define allowed updates (comma-seperated)

# Use this method to remove webhook integration if you decide to switch back to getUpdates
php artisan telegram:delete-webhook
# List of available options:
# --d|drop-pending-updates : Pass to drop all pending updates
```

Artisan terminal commands for the Telegram getUpdates method:

```
# Fetches Telegram updates periodically
php artisan telegram:fetch
# List of available options:
# --a|all-update-types : Explicitly allow all updates (including "chat_member")
# --allowed-updates= : Define allowed updates (comma-seperated)
```

Artisan terminal command for Telegram Server logging out:

```
# Sends a logout to the currently registered Telegram Server
php artisan telegram:logout
```

Artisan terminal command for closing Telegram Server:

```
# Sends a close to the currently registered Telegram Server
php artisan telegram:close
```

Artisan terminal command for publishing Telegram command folder structure in your project:

```
# Publishes folder structure for Telegram Commands
# Default StartCommand class will be created
php artisan telegram:publish
```

Artisan terminal command for creating new Telegram command class in your project:

```
# Create a new Telegram Bot Command class
# e.g. php artisan make:telegram-command Menu --> will make User command class MenuCommand
# e.g. php artisan make:telegram-command Genericmessage --system --> will make System command class GenericmessageCommand
php artisan make:telegram-command
# List of available options:
# name : Name of the Telegram Command
# --a|admin : Generate a AdminCommand
# --s|system : Generate a SystemCommand
# Without admin or system option default User command will be created
```

Credits
-------

[](#credits)

- [Avtandil Kikabidze aka LONGMAN](https://github.com/akalongman)
- [TiiFuchs](https://github.com/TiiFuchs)
- [All Contributors](https://github.com/php-telegram-bot/laravel/contributors)

License
-------

[](#license)

Please see the [license file](license.md) for more information.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 97.4% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/14a1723e8fdef3a1a174dd5c8e18d96f3e429159064f0da8efeab7dd90c17c8b?d=identicon)[uziins](/maintainers/uziins)

---

Top Contributors

[![TiiFuchs](https://avatars.githubusercontent.com/u/1958744?v=4)](https://github.com/TiiFuchs "TiiFuchs (76 commits)")[![IgorMonkey](https://avatars.githubusercontent.com/u/90739656?v=4)](https://github.com/IgorMonkey "IgorMonkey (1 commits)")[![uziins](https://avatars.githubusercontent.com/u/11049203?v=4)](https://github.com/uziins "uziins (1 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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