PHPackages                             creatorqwerty/simple-telegram-bot - 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. creatorqwerty/simple-telegram-bot

ActiveLibrary[API Development](/categories/api)

creatorqwerty/simple-telegram-bot
=================================

Простая PHP-библиотека для работы с Telegram Bot API

v1.0.0(9mo ago)00MITPHPPHP ^8.1

Since Aug 6Pushed 9mo agoCompare

[ Source](https://github.com/creatorqwerty/simple-telegram-bot)[ Packagist](https://packagist.org/packages/creatorqwerty/simple-telegram-bot)[ RSS](/packages/creatorqwerty-simple-telegram-bot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

🤖 Создание бота

Откройте @BotFather в Telegram

Выполните команды:

text /newbot → Укажите имя бота (например: MyCoolBot) → Укажите username (должен оканчиваться на \_bot) Сохраните полученный токен (формат: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)

💻 Установка bash

Создаем папку проекта
=====================

[](#создаем-папку-проекта)

mkdir my-telegram-bot &amp;&amp; cd my-telegram-bot

Инициализируем Composer
=======================

[](#инициализируем-composer)

composer init --name="myproject/bot" --type="project" --require="php": "^8.1" --no-interaction

Устанавливаем библиотеку
========================

[](#устанавливаем-библиотеку)

composer require creatorqwerty/simple-telegram-bot

Устанавливаем dotenv для работы с .env
======================================

[](#устанавливаем-dotenv-для-работы-с-env)

composer require vlucas/phpdotenv 🚀 Быстрый старт Создайте файл .env:

bash echo "TELEGRAM\_BOT\_TOKEN=ваш\_токен" &gt; .env echo ".env" &gt;&gt; .gitignore Создайте файл bot.php:

php

load(); try { $bot = new TelegramBot($\_ENV\['TELEGRAM\_BOT\_TOKEN'\]); // Получаем последние сообщения $updates = $bot-&gt;getUpdates(); if (!empty($updates)) { $chatId = $updates\[0\]\['message'\]\['chat'\]\['id'\]; $bot-&gt;sendMessage($chatId, "Привет! Я работаю!"); } else { echo "Напишите боту сообщение, чтобы получить chat\_id"; } } catch (Exception $e) { die("Ошибка: " . $e-&gt;getMessage()); } Запустите бота: bash php bot.php

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance57

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

285d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1372f61493eb772347e4c82a0486d1d99bb64319293fe358858e9e87d283be4?d=identicon)[creatorqwerty](/maintainers/creatorqwerty)

---

Top Contributors

[![creatorqwerty](https://avatars.githubusercontent.com/u/143329733?v=4)](https://github.com/creatorqwerty "creatorqwerty (3 commits)")

### Embed Badge

![Health badge](/badges/creatorqwerty-simple-telegram-bot/health.svg)

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

###  Alternatives

[netflie/whatsapp-cloud-api

The first PHP SDK to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform

640431.7k4](/packages/netflie-whatsapp-cloud-api)[showdoc/showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online

12.8k7.0k](/packages/showdoc-showdoc)[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36205.0k3](/packages/wrav-oembed)[lucianotonet/groq-php

A powerful PHP library for seamless integration with the GroqCloud API

83124.5k6](/packages/lucianotonet-groq-php)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[unicodeveloper/jusibe-php-lib

Jusibe PHP Library

3417.4k1](/packages/unicodeveloper-jusibe-php-lib)

PHPackages © 2026

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