Download the PHP package tourze/telegram-bot-bundle without Composer

On this page you can find all versions of the php package tourze/telegram-bot-bundle. 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-bundle

TelegramBotBundle

PHP Version Require License Latest Version Build Status Code Coverage

中文

A Symfony bundle for managing Telegram bots, providing comprehensive bot management capabilities including:

Table of Contents

Features

🤖 Bot Management

📨 Message Processing

🎯 Auto-Reply System

⚡ Command System

📊 Analytics & Logging

Installation

Requirements

Install via Composer

Core Dependencies

Quick Start

1. Bundle Registration

Register the bundle in your config/bundles.php:

2. Basic Configuration

The bundle works out-of-the-box without additional configuration files. The webhook endpoint is automatically available at:

For advanced configuration, you can customize services in your config/services.yaml if needed.

3. Usage

  1. Run database migrations to create required tables:

  2. Access the EasyAdmin interface to manage bots:

    • Bots: /admin?crudAction=index&crudControllerFqcn=TelegramBotBundle\Controller\Admin\TelegramBotCrudController
    • Auto-Reply Rules: /admin?crudAction=index&crudControllerFqcn=TelegramBotBundle\Controller\Admin\AutoReplyRuleCrudController
    • Bot Commands: /admin?crudAction=index&crudControllerFqcn=TelegramBotBundle\Controller\Admin\BotCommandCrudController
  3. Set up webhook URLs using the console command:

Auto-Reply Rules

Create intelligent auto-reply rules through the admin interface:

Command Handling

The bundle provides a command handling system that allows easy addition of new command handlers:

  1. Create a command handler class:

  2. Command handlers will be automatically registered and handle corresponding commands

Event System

The bundle uses an event system to handle Webhook messages. You can create your own EventSubscriber to handle messages:

API

Sending Messages

Advanced Usage

Database Schema

The bundle creates several tables for managing bots and tracking activity:

Event-Driven Architecture

Monitor bot activity by subscribing to events:

Custom Message Handlers

Create sophisticated message processing by implementing custom handlers:

Custom Command Handlers

Implement the CommandHandlerInterface to create custom commands:

Register your handler in the admin interface by creating a BotCommand entry with your handler's FQCN.

Contributing

We welcome contributions to improve this bundle! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes and add tests
  4. Ensure all tests pass (./vendor/bin/phpunit packages/telegram-bot-bundle/tests)
  5. Run static analysis (php -d memory_limit=2G ./vendor/bin/phpstan analyse packages/telegram-bot-bundle)
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

Development Setup

Changelog

Latest Changes

Version History

License

This bundle is licensed under the MIT License. See the LICENSE file for details.

Reference Documentation


All versions of telegram-bot-bundle with dependencies

PHP Build Version
Package Version
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 tourze/telegram-bot-bundle contains the following files

Loading the files please wait ...