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.4(2mo ago)07AGPL-3.0-or-laterPHPPHP ^8.4

Since Jul 3Pushed 2mo agoCompare

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

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

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

41

—

FairBetter than 89% of packages

Maintenance85

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Total

6

Last Release

78d 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 (11 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.4k855.0k18](/packages/danog-madelineproto)[amphp/websocket-client

Async WebSocket client for PHP based on Amp.

1613.0M39](/packages/amphp-websocket-client)[davtur19/turibot

A simple way to communicate with Telegram APIs in PHP.

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

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

13900.4k8](/packages/amphp-http-tunnel)[amphp/http-client-cookies

Automatic cookie handling for Amp's HTTP client.

14750.8k12](/packages/amphp-http-client-cookies)[amphp/http-server-static-content

Static content request handler for Amp's HTTP server.

2167.2k12](/packages/amphp-http-server-static-content)

PHPackages © 2026

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