Download the PHP package mollsoft/laravel-telegram-bot without Composer

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

Laravel Telegram Bot

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

EN: This package for Laravel 11+ allows you to easily create interactive Telegram bots, using Laravel routing, and using Blade templates to conduct a dialogue with the user.

RU: Этот пакет для Laravel 11+ позволяет с легкостью создавать интерактивные Telegram боты, при чем использовать маршрутизацию Laravel, а для ведения диалога с пользователем - использовать Blade шаблоны.

Installation / Установка

You can install the package via composer:

Используйте менеджер пакетов Composer для установки пакета:

You can publish and run the migrations with:

Вы можете опубликовать и запустить миграции:

You can publish the config file with:

Вы можете опубликовать конфигурационные файлы командой:

Optionally, you can publish the views using:

Опционально, Вы можете опубликовать шаблоны командой:

Optionally, if you use Sail for local development, you need add PHP params PHP_CLI_SERVER_WORKERS="10" in file supervisord.conf:

You can use Laravel Auth, edit file config/auth.php and edit section guards:

After this you can use middleware auth:telegram in your routes.

If you want work with automatic truncate dialogs, you must run command php artisan telegram:truncate every minute using Schedule.

Usage / Использование

Create new Telegram Bot:

Set Webhook for bot:

Unset Webhook for bot:

Manual pooling (on localhost) for bot:

Inline Keyboard

If you want create button for change current URI query params, use this template:

If you want send POST data you must use this template:

If you POST data is long, you can encrypt using this template:

If you want make redirect to another page from button, use this template:

Testing / Тестирование

Ideas / Идеи

  1. В Inline Button сделать параметр query-history=false что бы по нему текущий URL не сохранялся в referer и при back не выполнялся сброс формы - а был возврат назад.
  2. Возможность загрузки пользователями фото/видео/документы и парсинг capture в message.
  3. В Reply Button сделать кнопку отправки номера телефона + получение результатов в TelegramRequest.
  4. Чтение результата пересланного контакта в TelegramRequest.

Changelog / Логи изменений

Please see CHANGELOG for more information on what has changed recently.

Пожалуйста смотрите CHANGELOG для получения подробной информации об изменениях.

Credits / Авторы

License / Лицензия

The MIT License (MIT). Please see License File for more information.

Лицензия MIT (MIT). Дополнительную информацию см. в Файле лицензии.


All versions of laravel-telegram-bot with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-dom Version *
danog/telegram-entities Version ^1.0
illuminate/contracts Version ^11.0
illuminate/support Version ^11.0
spatie/laravel-package-tools Version ^1.16
symfony/dom-crawler Version ^7.1
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 mollsoft/laravel-telegram-bot contains the following files

Loading the files please wait ....