PHPackages                             rias/craft-telegram-notification-channel - 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. rias/craft-telegram-notification-channel

ActiveCraft-plugin[Mail &amp; Notifications](/categories/mail)

rias/craft-telegram-notification-channel
========================================

A Telegram notification channel for the Craft Notifications plugin

1.0.1(8y ago)1281[2 PRs](https://github.com/riasvdv/craft-telegram-notification-channel/pulls)MITPHP

Since Jan 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/riasvdv/craft-telegram-notification-channel)[ Packagist](https://packagist.org/packages/rias/craft-telegram-notification-channel)[ RSS](/packages/rias-craft-telegram-notification-channel/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

[![icon](./src/icon.svg)](./src/icon.svg)

[![Latest Version](https://camo.githubusercontent.com/44da1d1df6b12540ec7736a9f55c0210a8caff5d8ab88e95715590eb0d12ce1a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f726961737664762f63726166742d74656c656772616d2d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/riasvdv/craft-telegram-notification-channel/releases)[![Quality Score](https://camo.githubusercontent.com/a8140a73d83f18dde29fc02e23b22548a507165b4194d2bfdc1134605ae5bb57/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f726961737664762f63726166742d74656c656772616d2d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/riasvdv/craft-telegram-notification-channel)[![StyleCI](https://camo.githubusercontent.com/e7e22613bd87df3245a9d3061d0003b6e4c3a581e630661da794b32df572ded9/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131383636363831342f736869656c64)](https://styleci.io/repos/118666814)[![Total Downloads](https://camo.githubusercontent.com/7b198cfcc406e15db73173a1ab321dc2d9ed0276cd216ebe1b13299dca2c34a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726961732f63726166742d74656c656772616d2d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rias/craft-telegram-notification-channel)

Telegram Notification Channel plugin for Craft Notifications
============================================================

[](#telegram-notification-channel-plugin-for-craft-notifications)

A Telegram notification channel for the [Craft Notifications](https://github.com/riasvdv/craft-notifications) plugin

Support Open Source. Buy beer.
------------------------------

[](#support-open-source-buy-beer)

This plugin is licensed under a MIT license, which means that it's completely free open source software, and you can use it for whatever and however you wish. If you're using it and want to support the development, buy me a beer over at Beerpay!

[![Beerpay](https://camo.githubusercontent.com/1937ee4132143248699223c62358d2cf27c775657b4816ac63c711f20c3ef03f/68747470733a2f2f626565727061792e696f2f726961737664762f63726166742d74656c656772616d2d6e6f74696669636169746f6e2d6368616e6e656c2f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/riasvdv/craft-telegram-notification-channel)

Requirements
------------

[](#requirements)

- Make sure you have [Craft Notifications](https://github.com/riasvdv/craft-notifications) installed

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require rias/craft-telegram-notification-channel

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Telegram Notification Channel.

Setting up your Telegram Bot
----------------------------

[](#setting-up-your-telegram-bot)

Talk to [@BotFather](https://core.telegram.org/bots#6-botfather) and generate a Bot API Token.

Then, configure your Telegram Bot API Token either through the plugin settings or by copying the `config.php` file to `config/telegram-notification-channel.php` and setting the `token` there.

Using the Telegram Notification Channel
---------------------------------------

[](#using-the-telegram-notification-channel)

You can now add `telegram` to your `via()` function. You will also have to provide a `toTelegram` function to create your message.

```
use rias\notifications\models\Notification;
use rias\telegramnotificationchannel\models\TelegramMessage;

/**
 * Get the notification's delivery channels.
 *
 * @return array
 */
public function via()
{
    return ['telegram' => ''];
}

public function toTelegram()
{
    $blogpost = $this->event->sender;

    return TelegramMessage::create()
        //->to($this->user->telegram_user_id) // You can provide a different user or chat to send to here.
        ->content("A new blogpost has been added:\n*{$blogpost->title}*") // Markdown supported.
        ->button('View blogpost', $blogpost->url); // Inline Button
}
```

Here's a screenshot preview of the above notification on Telegram Messenger:

[![Message screenshot](./resources/img/message_screenshot.png)](./resources/img/message_screenshot.png)

### Available message methods

[](#available-message-methods)

- `to($chatId)`: (integer) Recipient's chat id or user id.
- `content('')`: (string) Notification message, supports markdown. For more information on supported markdown styles, check out these docs.
- `button($text, $url)`: (string) Adds an inline "Call to Action" button. You can add as many as you want and they'll be placed 2 in a row.
- `options([])`: (array) Allows you to add additional or override sendMessage payload (A Telegram Bot API method used to send message internally). For more information on supported parameters, check out these docs.

Credits
-------

[](#credits)

- [Laravel Notifications Channel - Telegram](https://github.com/laravel-notification-channels/telegram)

Brought to you by [Rias](https://rias.be)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity66

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~117 days

Total

2

Last Release

3007d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbd355ba9a931da845b0c4ff59a974dab98f829d567bb8c5ff435c823dfa255e?d=identicon)[riasvdv](/maintainers/riasvdv)

---

Tags

cmsCraftcraftcmscraft-plugintelegram notification channel

### Embed Badge

![Health badge](/badges/rias-craft-telegram-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/rias-craft-telegram-notification-channel/health.svg)](https://phpackages.com/packages/rias-craft-telegram-notification-channel)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k78](/packages/verbb-formie)[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)[verbb/vizy

A flexible visual editor field for Craft.

4251.5k1](/packages/verbb-vizy)[verbb/events

A full-featured plugin for event management and ticketing.

2312.1k](/packages/verbb-events)[verbb/icon-picker

A slick field to pick icons from. Supports SVGs, Sprites, Webfonts, Font Awesome and more.

16172.7k7](/packages/verbb-icon-picker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
