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 2mo ago

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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

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

2742d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2db27afb1b8edd5bb1b4995bba8639c915427a4af6507351c8062ce026228379?d=identicon)[mnr73](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M271](/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)
