Download the PHP package m4n50n/telegram-bot-bundle without Composer
On this page you can find all versions of the php package m4n50n/telegram-bot-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package telegram-bot-bundle
PHP Telegram Bot Bundle
This bundle provides a wrapper for using PHP Telegram Bot inside Symfony. Additional documentation can be found in the official repository.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php
file of your project:
Configure the Bundle
If you want the configuration / environment files to be created automatically inside your /config
folder, you can include my private Symfony Flex recipes repository in your composer.json
by adding the following configuration:
Usage
Whenever you need to get a bot instance, use dependency injection for your service. The bot configuration is automatically loaded by providing the bot name, which should match the key in the configuration yaml file. For example:
Methods
This wrapper defines the basic bot configuration methods.
webhookHandler()
Method that will receive and handle incoming updates via an outgoing webhook.setWebhook()
to register the webhook with Telegram. The endpoint to be configured as a webhook must be on a server with HTTPS support.unsetWebhook()
to unregister the webhook.
If you create controllers for these methods, you will only have to do:
Contributing
See CONTRIBUTING for more information.
Security
See SECURITY for more information.
License
Please see the LICENSE included in this repository for a full copy of the MIT license, which this project is licensed under.
All versions of telegram-bot-bundle with dependencies
longman/telegram-bot Version ^0.82.0
symfony/config Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/monolog-bundle Version ^3.0