PHPackages                             bazzastyle/bazzabot - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. bazzastyle/bazzabot

ActiveProject[HTTP &amp; Networking](/categories/http)

bazzastyle/bazzabot
===================

A simple way to communicate with Telegram APIs in PHP.

2.6(1mo ago)09AGPL-3.0-or-laterPHPPHP ^8.4

Since Jul 3Pushed 1mo agoCompare

[ Source](https://github.com/Bazzastyle/BazzaBot)[ Packagist](https://packagist.org/packages/bazzastyle/bazzabot)[ RSS](/packages/bazzastyle-bazzabot/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (4)Versions (9)Used By (0)

[![API](https://camo.githubusercontent.com/7501022eb905e801944548ad50e02e291557407b89f3ed98e6f149afe9a5f69b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656772616d253230426f742532304150492d31302e302530392d2d2532304d6179253230382c253230323032362d3238613865612e7376673f6c6f676f3d74656c656772616d)](https://core.telegram.org/bots/api)[![Latest Version on Packagist](https://camo.githubusercontent.com/1551b5d07438ecc77aa8faa7423bc0937b51ea1155c383a172ca783fb49bad51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62617a7a617374796c652f62617a7a61626f742e7376673f6c6162656c3d636f6d706f736572266c6f676f3d636f6d706f736572)](https://packagist.org/packages/bazzastyle/bazzabot)[![PHP](https://camo.githubusercontent.com/cfdc10bc43271bb8d1905fab04f0357efe1516a774bf1e93f125e381b0cbdad3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f62617a7a617374796c652f62617a7a61626f742f7068703f6c6f676f3d706870)](https://camo.githubusercontent.com/cfdc10bc43271bb8d1905fab04f0357efe1516a774bf1e93f125e381b0cbdad3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f62617a7a617374796c652f62617a7a61626f742f7068703f6c6f676f3d706870)[![License](https://camo.githubusercontent.com/2b4674f0b99726e01d8c68dd3972202df41a946fb908d3bff6a0593baaf694df/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62617a7a617374796c652f62617a7a61626f74)](https://camo.githubusercontent.com/2b4674f0b99726e01d8c68dd3972202df41a946fb908d3bff6a0593baaf694df/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62617a7a617374796c652f62617a7a61626f74)

[![Packagist Downloads](https://camo.githubusercontent.com/4e6674f0ff9b05060056bed61fe9d1573c940cf43275cf13b8065ee35650c610/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f62617a7a617374796c652f62617a7a61626f74)](https://packagist.org/packages/bazzastyle/bazzabot)[![Packagist Downloads](https://camo.githubusercontent.com/535f7df0c7b49fee8615970ae797b127572cfac586a912f91e39461667a552ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62617a7a617374796c652f62617a7a61626f74)](https://packagist.org/packages/bazzastyle/bazzabot)[![GitHub Issues](https://camo.githubusercontent.com/279d766222af270a70927d6c840dca7797f904514a65523864f4d025652820db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f62617a7a617374796c652f62617a7a61626f74)](https://github.com/bazzastyle/bazzabot/issues)[![GitHub Pull Requests](https://camo.githubusercontent.com/375261acc2d372e5ddfadcf8846ed6155f8cc00d1a7c945f8becf87df750bba9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f62617a7a617374796c652f62617a7a61626f74)](https://github.com/bazzastyle/bazzabot/pulls)

[![Maintainability](https://camo.githubusercontent.com/a258ed4f42d93215af22d535da2474e8dc253a63c47c8c64eb4ece8efc97b823/68747470733a2f2f716c74792e73682f67682f6e75746772616d2f70726f6a656374732f6e75746772616d2f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/nutgram/projects/nutgram/maintainability)[![Test Coverage](https://camo.githubusercontent.com/c8c1b0e6243e489b706f5d053ab99fc64ddc13424913fa96fb971c38cb5e5584/68747470733a2f2f716c74792e73682f67682f6e75746772616d2f70726f6a656374732f6e75746772616d2f636f7665726167652e737667)](https://qlty.sh/gh/nutgram/projects/nutgram/coverage)

BazzaBot fork [TuriBot](https://github.com/davtur19/TuriBot/tree/async)
=======================================================================

[](#bazzabot-fork-turibot)

> BazzaBot is a simple way to communicate with Telegram APIs in PHP

Requirements
------------

[](#requirements)

PHP 8.4 or higher

From composer: amphp/http-client 5.0 amphp/file 3.0

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

[](#installation)

```
composer require bazzastyle/bazzabot
```

- Copy the example folder outside the vendor folder and rename it as you wish.
- Rename env-sample.php to env.php

### Environment

[](#environment)

Set the required values in the env.php file

### Webhook

[](#webhook)

Open [setupWebhook.php](https://github.com/bazzastyle/BazzaBot/blob/master/example/setupWebhook.php) in your browser and follow the setup wizard.

### GetUpdates

[](#getupdates)

[Setup Token](https://github.com/bazzastyle/BazzaBot/blob/master/example/getUpdates.php#L8)

Usage
-----

[](#usage)

- Look at the examples ([webhook.php](https://github.com/bazzastyle/BazzaBot/blob/master/example/webhook.php) and [getUpdates.php](https://github.com/bazzastyle/BazzaBot/blob/master/examples/getUpdates.php)), it's very simple if you know PHP and OOP
- All methods have the parameters in the same order as the [BotAPIs](https://core.telegram.org/bots/api#available-methods)

Custom endpoint
---------------

[](#custom-endpoint)

With the Bot API 5.0 it is now possible to [self host your own Bot API](https://core.telegram.org/bots/api#using-a-local-bot-api-server), here is an example of how to add your own endpoint

Json payload
------------

[](#json-payload)

Only works with webhooks, for more info:

I do not recommend using it as it may need a particular configuration to the webserver for flushing and you cannot get a response from the Bot API

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance89

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

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

Recently: every ~31 days

Total

8

Last Release

56d ago

Major Versions

1.1 → 2.02025-08-19

### Community

Maintainers

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

---

Top Contributors

[![Bazzastyle](https://avatars.githubusercontent.com/u/19875048?v=4)](https://github.com/Bazzastyle "Bazzastyle (15 commits)")

### Embed Badge

![Health badge](/badges/bazzastyle-bazzabot/health.svg)

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

###  Alternatives

[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.5k902.0k23](/packages/danog-madelineproto)[amphp/websocket-client

Async WebSocket client for PHP based on Amp.

1655.1M59](/packages/amphp-websocket-client)[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

155484.7k37](/packages/putyourlightson-craft-blitz)[kelunik/acme

ACME library written in PHP.

121610.5k3](/packages/kelunik-acme)[davtur19/turibot

A simple way to communicate with Telegram APIs in PHP.

12315.9k](/packages/davtur19-turibot)[amphp/http-tunnel

HTTP/1.1 CONNECT tunnel connector built on the Amp concurrency framework

131.0M21](/packages/amphp-http-tunnel)

PHPackages © 2026

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