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

ActiveLibrary[API Development](/categories/api)

ya1c/telebot
============

Telebot - simple script for send messages to a bot

1.0.0(2y ago)09MIT

Since Feb 2Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Telebot
=======

[](#telebot)

Telebot - simple class for send messages to a chat or to bot on PHP.

PHP Version Support
-------------------

[](#php-version-support)

The currently required PHP version is PHP **8.0**.

See the `composer.json` for other requirements.

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

[](#installation)

Use [composer](https://getcomposer.org) to install Telebot into your project:

```
composer require ya1c/telebot
```

#### Example

[](#example)

```
require __DIR__.'/vendor/autoload.php';

use Ya\Telebot as Telebot;

$connect = new Telebot();
$connect->setBotToken("");//e.g.: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
$connect->setChatId("");//Unique identifier for the target chat or username of the target channel e.g.: -10012345678 or 1234567 or @channelusername

$sendOnlyText = $connect->sendMessage(["text"=>'Send only text']);

$inline_button = ["text"=>"link", "url"=>"https://www.rct.uk/"];
$inline_keyboard = [[$inline_button]];
$keyboard=array("inline_keyboard"=>$inline_keyboard);
$replyMarkup = json_encode($keyboard);
$sendTextWhitReplyMarkup = $connect->sendMessage(["text"=>'Send text with reply markup'], 'message', $replyMarkup);

$sendLocation = $connect->sendMessage(["latitude"=>51.5014, "longitude"=>0.1419], "location");

$sendContact = $connect->sendMessage(["phone_number"=>"+443031237300", "first_name"=>"Name", "last_name"=>"Lastname"], "contact");

$sendPhoto = $connect->sendMessage(["fileType"=>"photo", "photo"=>"https://www.rct.uk/sites/default/files/styles/rctr-scale-crop-1600-625/public/bp%20hero%20winter%201600%20x%20625.jpg?itok=bSBdwrwO", "caption"=>"This is photo"], "file");
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d5cf9bce5059ffb5265f472d48725d243371e09168179f100888039ca3cd6c?d=identicon)[ya1c](/maintainers/ya1c)

---

Top Contributors

[![ya1c](https://avatars.githubusercontent.com/u/7313233?v=4)](https://github.com/ya1c "ya1c (1 commits)")

---

Tags

phpapibottelegram

### Embed Badge

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

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

###  Alternatives

[borsaco/telegram-bot-api-bundle

A simple wrapper for telegram-bot-api.

5633.0k](/packages/borsaco-telegram-bot-api-bundle)[klev-o/telegram-bot-api

Simple and convenient object-oriented implementation Telegram bot API with php version ^7.4 support. You'll like it)

457.8k1](/packages/klev-o-telegram-bot-api)[klev-o/crypto-pay-api

Simple and convenient implementation of the Crypto Pay payment system (@CryptoBot)

205.1k](/packages/klev-o-crypto-pay-api)[kuvardin/telegram-bots-api

SDK for Telegram bots API

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

PHPackages © 2026

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