PHPackages                             madmagestelegram/client - 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. madmagestelegram/client

ActiveLibrary[API Development](/categories/api)

madmagestelegram/client
=======================

Telegram bot client

0.6.0(2y ago)310.6k↓59.5%1MITPHPPHP ^7.4 | ^8

Since Aug 18Pushed 2y agoCompare

[ Source](https://github.com/madmagestelegram/client)[ Packagist](https://packagist.org/packages/madmagestelegram/client)[ RSS](/packages/madmagestelegram-client/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (2)Versions (8)Used By (1)

Telegram client
===============

[](#telegram-client)

Telegram client for php. Based on [telegram bot types](https://github.com/madmagestelegram/Types)

Install
=======

[](#install)

`composer require madmagestelegram/client`

Usage
=====

[](#usage)

```
// Basic client instance,
// its possible redefine guzzle client on second argument with own options, if necessary
$client = new \MadmagesTelegram\Client\Client('BOT_TOKEN');

// Chat id.
// Usually received in webhook or (https://core.telegram.org/bots/api#getupdates)
$chatId = 0;

// Simple text message
$client->sendMessage($chatId, 'Hello world');

// Simple text + disable message notification
$client->sendMessage($chatId, 'Here is silent message', null, null, null, true);

// It`s possible to send a file
$file = new \MadmagesTelegram\Types\Type\InputFile('/var/photos/some-photo.jpg');

// Here we can send "photo" as photo
$client->sendPhoto($chatId, $file);
// or document
$sentMessage = $client->sendDocument($chatId, $file);

// $sentMessage is instance of \MadmagesTelegram\Types\Type\Message
// As we send document in few lines upper, the property "document" is filled in returned message,
// so we can print it, accessing by getter
print_r($sentMessage->getDocument());

// it prints something like...
// MadmagesTelegram\Types\Type\Document Object
// (
//     [fileId:protected] => ...
//     [fileUniqueId:protected] => ...
//     [thumb:protected] => ...
//     [fileName:protected] => ...
//     [mimeType:protected] => ...
//     [fileSize:protected] => ...
// )
```

API
===

[](#api)

All methods definitions defined [here](https://github.com/madmagestelegram/Types/blob/master/src/TypedClient.php)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Recently: every ~290 days

Total

7

Last Release

929d ago

PHP version history (2 changes)0.0.1PHP ^7.2

0.5.0PHP ^7.4 | ^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5528679?v=4)[Aleksandr Kalin](/maintainers/madmages)[@madmages](https://github.com/madmages)

---

Top Contributors

[![maddmages-l2lnch](https://avatars.githubusercontent.com/u/257162407?v=4)](https://github.com/maddmages-l2lnch "maddmages-l2lnch (6 commits)")

---

Tags

rpcbottelegram

### Embed Badge

![Health badge](/badges/madmagestelegram-client/health.svg)

```
[![Health](https://phpackages.com/badges/madmagestelegram-client/health.svg)](https://phpackages.com/packages/madmagestelegram-client)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

486.3k](/packages/bushlanov-dev-max-bot-api-client-php)[kuvardin/telegram-bots-api

SDK for Telegram bots API

166.6k](/packages/kuvardin-telegram-bots-api)

PHPackages © 2026

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