PHPackages                             vanloctech/telehook - 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. [API Development](/categories/api)
4. /
5. vanloctech/telehook

ActiveLibrary[API Development](/categories/api)

vanloctech/telehook
===================

Telegram Webhook - Laravel package for Webhook handle commands on telegram

v2.1.0(3y ago)2271MITPHPPHP &gt;=7.3

Since May 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vanloctech/telehook)[ Packagist](https://packagist.org/packages/vanloctech/telehook)[ RSS](/packages/vanloctech-telehook/feed)WikiDiscussions master Synced 1w ago

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

Telehook Laravel
================

[](#telehook-laravel)

*Telegram bot command like conversation for Laravel*

DEMO
----

[](#demo)

    demo.mp4    Requirement
-----------

[](#requirement)

- Laravel framework &gt;= 5.8 and up
- PHP &gt;= 7.3

Reporting Issues
----------------

[](#reporting-issues)

If you do find an issue, please feel free to report it with [GitHub's bug tracker](https://github.com/vanloctech/telehook/issues) for this project.

Alternatively, fork the project and make a pull request :)

Setup
-----

[](#setup)

Install package

```
composer require vanloctech/telehook
```

Publish config file `telehook.php`, migration files, translations file for project

```
php artisan vendor:publish --provider="Vanloctech\Telehook\TelehookServiceProvider"
```

Execute command in schedule for run every minute to stop conversation exceed the time limit

```
// app/Console/Kernel.php

// ...

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command('telehook:stop-conversation')->everyMinute();
}

// ...
```

We also provide a facade for Telehook (which has connected using our settings), add following to your `config/app.php` if you need so.

```
// config/app.php

'aliases' => [
    ...
    'Telehook' => \Vanloctech\Telehook\Facades\TelehookFacade::class,
],
```

Usage
-----

[](#usage)

Create telegram command - telehook command

```
php artisan make:telehook-command
# Ex: php artisan make:telehook-command HelloWorld
```

Override code in `finish` function

```
