PHPackages                             alexsoft/laravel-notifications-telegram - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. alexsoft/laravel-notifications-telegram

Abandoned → [laravel-notification-channels/telegram](/?search=laravel-notification-channels%2Ftelegram)Library[Mail &amp; Notifications](/categories/mail)

alexsoft/laravel-notifications-telegram
=======================================

\[DEPRECATED\] Laravel 5.3 Notifications Telegram driver

v0.1.2(8y ago)4391MITPHPPHP &gt;=5.6.4

Since Aug 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexsoft/laravel-notifications-telegram)[ Packagist](https://packagist.org/packages/alexsoft/laravel-notifications-telegram)[ Docs](https://github.com/alexsoft/laravel-notifications-telegram)[ RSS](/packages/alexsoft-laravel-notifications-telegram/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

\[DEPRECATED\]
==============

[](#deprecated)

### Please use

[](#please-use-httpsgithubcomlaravel-notification-channelstelegram)

Laravel 5.3 Notifications to Telegram
=====================================

[](#laravel-53-notifications-to-telegram)

[![StyleCI Status](https://camo.githubusercontent.com/60627a36a510650bd759d4f8fe9d3ab150555391f3ee70fd676bd2ffc349fd8f/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353238353634332f736869656c64)](https://styleci.io/repos/65285643)

Installation
------------

[](#installation)

[PHP](https://php.net) 5.6.4+ is required.

To get the latest version of Laravel Notifications Telegram, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require alexsoft/laravel-notifications-telegram
```

Or you can manually update your require block and run `composer update` if you choose so:

```
{
    "require": {
        "alexsoft/laravel-notifications-telegram": "^0.1"
    }
}
```

You will also need to install `guzzlehttp/guzzle` http client to send request to Telegram API.

Once Laravel Notifications Telegram is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `Alexsoft\LaravelNotificationsTelegram\ServiceProvider::class`

Configuration
-------------

[](#configuration)

### Telegram Bot API Token

[](#telegram-bot-api-token)

First, talk to [@BotFather](https://core.telegram.org/bots#botfather) and generate one. Then put it to `config/services.php` configuration file. You may copy the example configuration below to get started:

```
'telegram-notifications-bot-token' => [
    'key' => env('TELEGRAM_BOT_API_TOKEN')
]
```

### Routing Telegram notifications

[](#routing-telegram-notifications)

In order to send notifications to telegram, you need specify Telegram chat\_id of notifiable entity. To provide library with correct chat id, you need to define `routeNotificationForTelegram` method on the entity:

```
