PHPackages                             reactmore/telegram-bot-sdk - 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. reactmore/telegram-bot-sdk

ActiveLibrary[API Development](/categories/api)

reactmore/telegram-bot-sdk
==========================

v1.1.5(4mo ago)025MITPHPPHP ^8.1

Since Aug 10Pushed 4mo agoCompare

[ Source](https://github.com/reactmore/telegram-bot-sdk)[ Packagist](https://packagist.org/packages/reactmore/telegram-bot-sdk)[ RSS](/packages/reactmore-telegram-bot-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (8)Versions (13)Used By (0)

Telegram BOT CodeIgniter 4
==========================

[](#telegram-bot-codeigniter-4)

This library integrates the **Telegram BOT API** with the **CodeIgniter 4** framework.
It supports `.env` configuration, custom commands, and the option to run the bot using the **Telegram Local Server** for improved performance.

---

📦 Installation
--------------

[](#-installation)

1. **Clone Repository / Install Library**

```
   composer require reactmore/TelegramBotSdk
```

Configuration
-------------

[](#configuration)

1. Publish Telegram Config

```
php spark telegram:publish
```

2. Overide Config env:

```
#--------------------------------------------------------------------
# Bot Configuration
#--------------------------------------------------------------------

telegram.apiKey = 'xxxxxxxxx'
telegram.username = 'xxxxxxxxxxxxx'
telegram.chatsAdmin = 'xxxxxx, xxxxx, xxxxx'
telegram.accessCodesLogin = 'xxxxx'

# for developer only or local server, default is false
telegram.localServer = false
telegram.customBotApiUrl = "http://192.168.1.17:3366"
```

Example Custom Webhook Controller:
----------------------------------

[](#example-custom-webhook-controller)

```
