PHPackages                             kolirt/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kolirt/laravel-telegram

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kolirt/laravel-telegram
=======================

0.2.3(8mo ago)1591MITPHPPHP &gt;=8.1

Since Mar 13Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/kolirt/laravel-telegram)[ Packagist](https://packagist.org/packages/kolirt/laravel-telegram)[ Docs](https://github.com)[ Fund](https://www.buymeacoffee.com/kolirt)[ RSS](/packages/kolirt-laravel-telegram/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (31)Used By (0)

Laravel Telegram
================

[](#laravel-telegram)

Structure
---------

[](#structure)

- [Getting started](#getting-started)
    - [Requirements](#requirements)
    - [Installation](#installation)
    - [Setup](#setup)
- [Console commands](#console-commands)
- [Define bot commands](#define-bot-commands)
- [Define keyboard](#define-keyboard)
- [Telegram API implementation status](#telegram-api-implementation-status)
    - [Getting updates](#getting-updates)
        - [Types](#types)
        - [Methods](#methods)
    - [Available types](#available-types)
    - [Available methods](#available-methods)
- [FAQ](#faq)
- [License](#license)
- [Other packages](#other-packages)

[ ![Buy Me A Coffee](https://camo.githubusercontent.com/a6ebf9f3a5d0689c6d7449b0ea0c4ce75bbff5ef09b38babf991cb7a559f8774/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f617269616c2d79656c6c6f772e706e67)](https://www.buymeacoffee.com/kolirt)Getting started
---------------

[](#getting-started)

### Requirements

[](#requirements)

- PHP &gt;= 8
- Laravel &gt;= 10

### Installation

[](#installation)

```
composer require kolirt/laravel-telegram
```

### Setup

[](#setup)

```
php artisan telegram:install

php artisan migrate

php artisan telegram:bot-create {bot-name} {token}
```

Console commands
----------------

[](#console-commands)

- `telegram:bot-create {bot_name}` - Create a new bot
- `telegram:bot-delete-commands {bot_name}` - Delete bot commands
- `telegram:bot-update-commands {bot_name}` - Update bot commands
- `telegram:bot-set-webhook {bot_name}` - Set webhook for bot
- `telegram:install` - Installation the package
- `telegram:meta` - Generate metadata
- `telegram:publish-commands` - Publish example commands
- `telegram:publish-config` - Publish the config file
- `telegram:publish-migrations` - Publish migration files
- `telegram:publish-routes` - Publish the route file
- `telegram:serve {bot_name}` - Serve the bot without webhook

Define bot commands
-------------------

[](#define-bot-commands)

You can configure bot commands in `routes/telegram.php`, which will be published after the installation, and then you can update the commands in bot using the `php aritsan telegram:bot-update-commands {bot_name}` command

```
$config->bot('test')
    ->commands(function (CommandBuilder $builder) {
        $builder->start(StartCommand::class, 'Start command description');
        $builder->command('info', InfoCommand::class, 'Info command description');
        $builder->command('test', [TestCommand::class, 'index'], 'Test command description');
    })
```

Define keyboard
---------------

[](#define-keyboard)

```
$config->bot('tma')
    ->keyboard(function (KeyboardBuilder $keyboard) {
        $keyboard->defaultHandler(StartCommand::class);
        // OR
        $keyboard->defaultHandler(HomeController::class);
    });
```

Telegram API implementation status
----------------------------------

[](#telegram-api-implementation-status)

### [Getting updates](https://core.telegram.org/bots/api#getting-updates)

[](#getting-updates)

#### Types

[](#types)

- [Update](https://core.telegram.org/bots/api#update) - \[[source code](src/Core/Types/Updates/UpdateType.php)\]
- [WebhookInfo](https://core.telegram.org/bots/api#webhookinfo) - \[[source code](src/Core/Types/Updates/WebhookInfoType.php)\]

#### Methods

[](#methods)

- [getUpdates](https://core.telegram.org/bots/api#getupdates) - \[[source code](src/Core/Methods/Updates/GetUpdatesMethod.php)\]
- [setWebhook](https://core.telegram.org/bots/api#setwebhook) - \[[source code](src/Core/Methods/Updates/SetWebhookMethod.php)\]
- [deleteWebhook](https://core.telegram.org/bots/api#deletewebhook) - \[[source code](src/Core/Methods/Updates/DeleteWebhookMethod.php)\]
- [getWebhookInfo](https://core.telegram.org/bots/api#getwebhookinfo) - \[[source code](src/Core/Methods/Updates/GetWebhookInfoMethod.php)\]

### [Available types](https://core.telegram.org/bots/api#available-types)

[](#available-types)

- [User](https://core.telegram.org/bots/api#user) - \[[source code](src/Core/Types/UserType.php)\]
- [Chat](https://core.telegram.org/bots/api#chat) - \[[source code](src/Core/Types/ChatType.php)\]
- [Message](https://core.telegram.org/bots/api#message) - \[[source code](src/Core/Types/MessageType.php)\]
- MessageId
- InaccessibleMessage
- MaybeInaccessibleMessage
- MessageEntity
- TextQuote
- ExternalReplyInfo
- ReplyParameters
- MessageOrigin
- MessageOriginUser
- MessageOriginHiddenUser
- MessageOriginChat
- MessageOriginChannel
- PhotoSize
- Animation
- Audio
- Document
- Story
- Video
- VideoNote
- Voice
- Contact
- Dice
- PollOption
- PollAnswer
- Poll
- Location
- Venue
- WebAppData
- ProximityAlertTriggered
- MessageAutoDeleteTimerChanged
- ChatBoostAdded
- ForumTopicCreated
- ForumTopicClosed
- ForumTopicEdited
- ForumTopicReopened
- GeneralForumTopicHidden
- GeneralForumTopicUnhidden
- SharedUser
- UsersShared
- ChatShared
- WriteAccessAllowed
- VideoChatScheduled
- VideoChatStarted
- VideoChatEnded
- VideoChatParticipantsInvited
- GiveawayCreated
- Giveaway
- GiveawayWinners
- GiveawayCompleted
- LinkPreviewOptions
- UserProfilePhotos
- File
- WebAppInfo
- ReplyKeyboardMarkup
- KeyboardButton
- KeyboardButtonRequestUsers
- KeyboardButtonRequestChat
- KeyboardButtonPollType
- ReplyKeyboardRemove
- InlineKeyboardMarkup
- InlineKeyboardButton
- LoginUrl
- SwitchInlineQueryChosenChat
- CallbackQuery
- ForceReply
- ChatPhoto
- ChatInviteLink
- ChatAdministratorRights
- ChatMemberUpdated
- [ChatMember](https://core.telegram.org/bots/api#chatmember) - \[[source code](src/Core/Types/Chat/Member/ChatMemberType.php)\]
- [ChatMemberOwner](https://core.telegram.org/bots/api#chatmemberowner) - \[[source code](src/Core/Types/Chat/Member/ChatMemberOwnerType.php)\]
- [ChatMemberAdministrator](https://core.telegram.org/bots/api#chatmemberadministrator) - \[[source code](src/Core/Types/Chat/Member/ChatMemberAdministratorType.php)\]
- [ChatMemberMember](https://core.telegram.org/bots/api#chatmembermember) - \[[source code](src/Core/Types/Chat/Member/ChatMemberMemberType.php)\]
- [ChatMemberRestricted](https://core.telegram.org/bots/api#chatmemberrestricted) - \[[source code](src/Core/Types/Chat/Member/ChatMemberRestrictedType.php)\]
- [ChatMemberLeft](https://core.telegram.org/bots/api#chatmemberleft) - \[[source code](src/Core/Types/Chat/Member/ChatMemberLeftType.php)\]
- [ChatMemberBanned](https://core.telegram.org/bots/api#chatmemberbanned) - \[[source code](src/Core/Types/Chat/Member/ChatMemberBannedType.php)\]
- ChatJoinRequest
- ChatPermissions
- Birthdate
- BusinessIntro
- BusinessLocation
- BusinessOpeningHoursInterval
- BusinessOpeningHours
- ChatLocation
- ReactionType
- ReactionTypeEmoji
- ReactionTypeCustomEmoji
- ReactionCount
- MessageReactionUpdated
- MessageReactionCountUpdated
- ForumTopic
- BotCommand
- BotCommandScope
- Determining list of commands
- BotCommandScopeDefault
- BotCommandScopeAllPrivateChats
- BotCommandScopeAllGroupChats
- BotCommandScopeAllChatAdministrators
- BotCommandScopeChat
- BotCommandScopeChatAdministrators
- BotCommandScopeChatMember
- BotName
- BotDescription
- BotShortDescription
- MenuButton
- MenuButtonCommands
- MenuButtonWebApp
- MenuButtonDefault
- ChatBoostSource
- ChatBoostSourcePremium
- ChatBoostSourceGiftCode
- ChatBoostSourceGiveaway
- ChatBoost
- ChatBoostUpdated
- ChatBoostRemoved
- UserChatBoosts
- BusinessConnection
- BusinessMessagesDeleted
- ResponseParameters
- InputMedia
- InputMediaPhoto
- InputMediaVideo
- InputMediaAnimation
- InputMediaAudio
- InputMediaDocument
- InputFile
- Sending files
- Accent colors
- Profile accent colors
- Inline mode objects

### [Available methods](https://core.telegram.org/bots/api#available-methods)

[](#available-methods)

- [getMe](https://core.telegram.org/bots/api#getme) \[[source code](src/Core/Methods/GetMeMethod.php)\]
- logOut
- close
- [sendMessage](https://core.telegram.org/bots/api#sendmessage) \[[source code](src/Core/Methods/Messages/SendMessageMethod.php)\]
- Formatting options
- forwardMessage
- forwardMessages
- copyMessage
- copyMessages
- [sendPhoto](https://core.telegram.org/bots/api#sendphoto) \[[source code](src/Core/Methods/Photo/SendPhotoMethod.php)\]
- sendAudio
- [sendDocument](https://core.telegram.org/bots/api#senddocument) \[[source code](src/Core/Methods/Document/SendDocumentMethod.php)\]
- sendVideo
- sendAnimation
- sendVoice
- sendVideoNote
- sendMediaGroup
- sendLocation
- sendVenue
- sendContact
- sendPoll
- sendDice
- sendChatAction
- setMessageReaction
- getUserProfilePhotos
- getFile
- banChatMember
- unbanChatMember
- restrictChatMember
- promoteChatMember
- setChatAdministratorCustomTitle
- banChatSenderChat
- unbanChatSenderChat
- setChatPermissions
- exportChatInviteLink
- createChatInviteLink
- editChatInviteLink
- revokeChatInviteLink
- approveChatJoinRequest
- declineChatJoinRequest
- setChatPhoto
- deleteChatPhoto
- setChatTitle
- setChatDescription
- pinChatMessage
- unpinChatMessage
- unpinAllChatMessages
- leaveChat
- getChat
- getChatAdministrators
- getChatMemberCount
- [getChatMember](https://core.telegram.org/bots/api#getchatmember) - \[[source code](src/Core/Methods/Chat/GetChatMemberMethod.php)\]
- setChatStickerSet
- deleteChatStickerSet
- getForumTopicIconStickers
- createForumTopic
- editForumTopic
- closeForumTopic
- reopenForumTopic
- deleteForumTopic
- unpinAllForumTopicMessages
- editGeneralForumTopic
- closeGeneralForumTopic
- reopenGeneralForumTopic
- hideGeneralForumTopic
- unhideGeneralForumTopic
- unpinAllGeneralForumTopicMessages
- answerCallbackQuery
- getUserChatBoosts
- getBusinessConnection
- [setMyCommands](https://core.telegram.org/bots/api#setmycommands) \[[source code](src/Core/Methods/Commands/SetMyCommandsMethod.php)\]
- [deleteMyCommands](https://core.telegram.org/bots/api#deletemycommands) \[[source code](src/Core/Methods/Commands/DeleteMyCommandsMethod.php)\]
- [getMyCommands](https://core.telegram.org/bots/api#getmycommands) \[[source code](src/Core/Methods/Commands/GetMyCommandsMethod.php)\]
- setMyName
- getMyName
- setMyDescription
- getMyDescription
- setMyShortDescription
- getMyShortDescription
- setChatMenuButton
- getChatMenuButton
- setMyDefaultAdministratorRights
- getMyDefaultAdministratorRights
- Inline mode methods

FAQ
---

[](#faq)

Check closed [issues](https://github.com/kolirt/laravel-telegram/issues) to get answers for most asked questions

License
-------

[](#license)

[MIT](LICENSE.txt)

Other packages
--------------

[](#other-packages)

Check out my other packages on my [GitHub profile](https://github.com/kolirt)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance59

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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 ~7 days

Recently: every ~13 days

Total

30

Last Release

261d ago

### Community

Maintainers

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

---

Top Contributors

[![kolirt](https://avatars.githubusercontent.com/u/11573343?v=4)](https://github.com/kolirt "kolirt (97 commits)")

### Embed Badge

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

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

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.7k2](/packages/crumbls-layup)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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