Download the PHP package vet1kk/telegram-bot-core without Composer

On this page you can find all versions of the php package vet1kk/telegram-bot-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package telegram-bot-core

Telegram Bot Core

PHP 8.3+ Packagist Version GitHub Release Packagist Downloads Telegram Bot API

Lightweight Telegram bot core for PHP 8.3+ with typed updates, attribute-based handlers, middleware, events, and a small DI-driven runtime.

It is designed for projects that want Telegram bot wiring without bringing in a full framework.

Highlights

Requirements

Installation

Quick start

Create a webhook entrypoint and register your handlers. The library bootstraps its core services for you.

If you only need to register the webhook once:

Your first command

Commands handle Telegram messages such as /start.

Your first action

Actions handle callback_query updates from inline keyboard buttons.

Middleware

Middleware runs before the router dispatches an update and is useful for timing, auth, maintenance mode, or logging.

Event listeners

Listeners let you react to lifecycle events without coupling side effects to your handlers.

Built-in events include:

Service providers and customization

The core runtime registers sensible defaults, including a NullLogger, webhook handler, client, router, managers, and update factory. Override or extend them with your own service provider.

If you are integrating this library into Laravel, Symfony, Slim, or another HTTP stack, swapping Bot\Webhook\WebhookHandlerInterface is usually the first extension point.

Running updates manually

For tests or custom transports, you can create an UpdateDTO and execute the pipeline directly with Bot::run($update).

Bot::runFromWebhook() is just a convenience around reading the webhook payload, building the update DTO, emitting ReceivedEvent, and routing the update through middleware.

Development commands

Quality snapshot

Current local quality snapshot for this repository:

You can refresh these numbers locally with:

Project notes

Contributing

Issues and pull requests are welcome. If you add new features or integrations, please include tests where it makes sense so the public API stays reliable.


All versions of telegram-bot-core with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.8
psr/container Version ^2.0
php-di/php-di Version ^7.1
psr/log Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vet1kk/telegram-bot-core contains the following files

Loading the files please wait ...