PHPackages                             usermp/telebot - 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. usermp/telebot

ActiveLibrary[API Development](/categories/api)

usermp/telebot
==============

A simple package for telegram api

v1.0.0(2y ago)216MITPHP

Since Mar 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/usermp/telebot)[ Packagist](https://packagist.org/packages/usermp/telebot)[ RSS](/packages/usermp-telebot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Telebot
=======

[](#telebot)

Telebot is a PHP library for interacting with the Telegram Bot API. It provides methods to perform various actions such as sending messages, photos, videos, documents, etc., and also handling webhooks and getting updates from Telegram.

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

[](#installation)

You can install Telebot via Composer. Run the following command in your terminal:

bashCopy code

`composer require usermp/telebot`

Usage
-----

[](#usage)

First, you need to create an instance of the `Telebot` class by providing your Telegram Bot token:

```
use Telebot\Telebot;
$token = 'YOUR_TELEGRAM_BOT_TOKEN';
$telebot = new Telebot($token);
```

### Setting Webhook

[](#setting-webhook)

You can set up a webhook URL for your bot to receive updates. Use the `setWebhook` method:

```
$webhookUrl = 'YOUR_WEBHOOK_URL';
$response   = $telebot->setWebhook($webhookUrl);
```

### Sending Messages

[](#sending-messages)

You can send messages to a chat using the `sendMessage` method:

```
$chatId   = 'CHAT_ID';
$text     = 'Hello, world!';
$response = $telebot->sendMessage($chatId, $text);
```

### Handling Updates

[](#handling-updates)

You can get updates from Telegram using the `getUpdates` method:

```
$updates = $telebot->getUpdates();
```

### Other Actions

[](#other-actions)

Telebot provides various methods for different actions such as sending photos, audio, documents, videos, locations, contacts, etc. Refer to the source code or documentation for the complete list of available methods.

Contributing
------------

[](#contributing)

Contributions are welcome! Feel free to open issues or pull requests.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/48add354597189247b456142f8384caf8b7dde8d30e48eab47b6a1484ebceecc?d=identicon)[usermp](/maintainers/usermp)

---

Top Contributors

[![usermp](https://avatars.githubusercontent.com/u/39251365?v=4)](https://github.com/usermp "usermp (12 commits)")

### Embed Badge

![Health badge](/badges/usermp-telebot/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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