PHPackages                             juniora/bale-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. juniora/bale-bot-sdk

ActiveLibrary[API Development](/categories/api)

juniora/bale-bot-sdk
====================

The Unofficial Bale Bot API PHP SDK

v1.0.6(1mo ago)05BSD-4-ClausePHPPHP ^8.0

Since Apr 11Pushed 1mo agoCompare

[ Source](https://github.com/JunioraTeam/Bale-Bot-SDK)[ Packagist](https://packagist.org/packages/juniora/bale-bot-sdk)[ Docs](https://github.com/ErfanVahabpour/Bale-Bot-SDK)[ Fund](https://aqayepardakht.ir/efive)[ RSS](/packages/juniora-bale-bot-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

Bale Bot API - PHP SDK
======================

[](#bale-bot-api---php-sdk)

> Bale Bot PHP SDK lets you develop Bale Bots in PHP easily! Supports Laravel out of the box.
>
> [Bale Bot API](https://dev.bale.ai/) is an HTTP-based interface created for developers keen on building bots for Bale.
>
> To learn more about the Bale Bot API, please consult the [Introduction to Bots](https://dev.bale.ai/) and [Bot FAQ](https://docs.bale.ai/) on official Bale site.
>
> To get started writing your bots using this SDK, Please refer the [documentation](https://bale-bot-sdk.efive.net/).

Documentation
-------------

[](#documentation)

Documentation for the SDK can be found on the [website](https://bale-bot-sdk.efive.net/).

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

[](#installation)

```
composer require erfanvahabpour/bale-bot-sdk
```

Examples
--------

[](#examples)

### getMe Method

[](#getme-method)

A simple method for testing your bot's auth token.
Returns basic information about the bot in form of a User object.

```
$Bale = new Api($token);

$response = $Bale->getMe(); // return User object
```

### sendMessage Method

[](#sendmessage-method)

Send text messages.

```
$Bale = new Api($token);

$response = $Bale->sendMessage([
    'chat_id' => '2100855301',
    'text' => 'This is a text.'
]); // return Message object
```

### sendMessage Method in Laravel

[](#sendmessage-method-in-laravel)

Send text messages.

```
use EFive\Balle\Laravel\Facades\Bale;

$response = Bale::sendMessage([
    'chat_id' => '2100855301',
    'text' => 'This is a text.'
]); // return Message object
```

### Get first name of a chat

[](#get-first-name-of-a-chat)

Show the first name of a chat(private chats only)

```
$Bale = new Api($token);

$response = $Bale->getChat([
    'chat_id' => '2100855301'
]); // return User object

echo $response->getFirstName();
```

### Setting multiple bots

[](#setting-multiple-bots)

For setting multiple bots in a single application

```
use EFive\Bale\BotsManager;

$config = [
    'bots' => [
        'firstBot' => [
            'token' => $firstBotToken,
        ],
        'secondBot' => [
            'token' => $secondBotToken,
        ],
    ]
];

$bale = new BotsManager($config);

// getMe Method
$response = $bale->bot('firstBot')->getMe(); // return User object
```

Disclaimer
----------

[](#disclaimer)

This project and its author are neither associated nor affiliated with [Bale](https://bale.ai/) in any way. Please see the [License](https://github.com/ErfanVahabpour/Bale-Bot-SDK/blob/main/LICENSE.md) for more details.

License
-------

[](#license)

This project is released under the [BSD 4-Clause](https://github.com/ErfanVahabpour/Bale-Bot-SDK/blob/main/LICENSE.md) License.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance88

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Unknown

Total

1

Last Release

59d ago

### Community

Maintainers

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

---

Top Contributors

[![ErfanVahabpour](https://avatars.githubusercontent.com/u/139115035?v=4)](https://github.com/ErfanVahabpour "ErfanVahabpour (62 commits)")[![nimah79](https://avatars.githubusercontent.com/u/20343056?v=4)](https://github.com/nimah79 "nimah79 (2 commits)")[![gurleenjammu](https://avatars.githubusercontent.com/u/112728051?v=4)](https://github.com/gurleenjammu "gurleenjammu (1 commits)")

---

Tags

laravelBalebale botbale bot apibale sdkbale phplaravel bale

### Embed Badge

![Health badge](/badges/juniora-bale-bot-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/juniora-bale-bot-sdk/health.svg)](https://phpackages.com/packages/juniora-bale-bot-sdk)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k532.1M2.5k](/packages/aws-aws-sdk-php)[irazasyed/telegram-bot-sdk

The Unofficial Telegram Bot API PHP SDK

3.3k4.8M92](/packages/irazasyed-telegram-bot-sdk)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M395](/packages/drupal-core-recommended)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)[moonshine/moonshine

Laravel administration panel

1.3k239.9k72](/packages/moonshine-moonshine)

PHPackages © 2026

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