bossit/yii2-telegram-logger

There is no license information available for the latest version (1.0.5) of this package.

Push the message in Telegram

Maintainers

👁 bossit

Package info

github.com/bossit/yii2-telegram-logger

Type:yii2-extension

pkg:composer/bossit/yii2-telegram-logger

Statistics

Installs: 642

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.5 2019-02-18 13:44 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License 3eed9f0cc7f3e75fcfa7bca0a8ff29517192e434

yii2telegram

This package is auto-updated.

Last update: 2026-06-19 06:23:30 UTC


README

Push the message in Telegram channel.

👁 Latest Stable Version
👁 Build Status
👁 Total Downloads

Install

The preferred way to install this component is through composer.

$ composer require bossit/yii2-telegram-logger:^1.0 

Usage

The preferred way is to setup the components into our Application's configuration array:

'components' => [
 'telegramLogger' => [
 'class' => \bossit\logger\TelegramService::class,
 'botKey' => 'xxx:zzz',
 'botName' => 'YouNameBot',
 'channelId' => '-100xxx'
 ],
],

That's it, you are ready to use them as Yii2 components.

Send a message to channel:
\Yii::$app->telegramLogger->push('Hello, %username%!');
Send a message with title to channel:
\Yii::$app->telegramLogger->push('Hello, %username%!', 'Authorization');