PHPackages                             miladnazari/telegram-bot-api - 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. miladnazari/telegram-bot-api

ActiveLibrary[API Development](/categories/api)

miladnazari/telegram-bot-api
============================

simple package for telegram bot api

v1.2.8(7y ago)031MITPHP

Since Sep 12Pushed 7y agoCompare

[ Source](https://github.com/mnr73/telegramBotApi)[ Packagist](https://packagist.org/packages/miladnazari/telegram-bot-api)[ RSS](/packages/miladnazari-telegram-bot-api/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)DependenciesVersions (12)Used By (0)

telegramBotApi
==============

[](#telegrambotapi)

simple telegram bot API with multiple bot support for php
---------------------------------------------------------

[](#simple-telegram-bot-api-with-multiple-bot-support-for-php)

install with composer

```
composer require miladnazari/telegram-bot-api

```

Usage
-----

[](#usage)

### create new object

[](#create-new-object)

```
$api = new \miladnazari\telegramBotApi\api('YOUR-BOT-TOKEN');

//create with more options

$api = new \miladnazari\telegramBotApi\api('YOUR-BOT-TOKEN'[, bool $getResult = true [, int $connectionTimeOut = 10 [, int $responseTimeOut = 50 ]]]);

```

### get me method

[](#get-me-method)

```
$res = $api->action('getMe')->shoot();

// return {"ok":true,"result":{"id":598765309,"is_bot":true,"first_name":"G11\ufe0f\u20e3","username":"mnrG1bot"}} in std class

```

### sendMessage method

[](#sendmessage-method)

```
$res = $api->action('sendMessage')
     ->param([
         'chat_id' => 'ID OR USERNAME',
         'text' => 'FIRTS TEXT TO SEND',
     ])
     ->shoot();

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Total

11

Last Release

2793d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23061025?v=4)[milad nazari](/maintainers/mnr73)[@mnr73](https://github.com/mnr73)

---

Top Contributors

[![mnr73](https://avatars.githubusercontent.com/u/23061025?v=4)](https://github.com/mnr73 "mnr73 (23 commits)")

### Embed Badge

![Health badge](/badges/miladnazari-telegram-bot-api/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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