2017 © Pedro Peláez
 

yii2-extension yii2-telegram-notifications

this is extension for telegramNotifications

image

webstik/yii2-telegram-notifications

this is extension for telegramNotifications

  • Wednesday, May 2, 2018
  • by Pashkinz92
  • Repository
  • 2 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 60 % Grown

The README.md

Telegram notifications

This is extension for Telegram notifications., (*1)

Docs for yii2 advanced template, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist webstik/yii2-telegram-notifications:dev-master

or add, (*5)

"webstik/yii2-telegram-notifications": "dev-master"

to the require section of your composer.json file., (*6)

Usage

Module

This extension implements usage of telegram WebHooks. To handle requests
you must configure the module in the backend side with a name of telegramNotifications as shown below:, (*7)

'modules' => [
   'telegramNotifications' =>  [
        'class' => '\webstik\telegramNotifications\Module'
    ]
],

Migrations

This extension uses DB for saving configuration of telegram bot. You must add configure the console/main.php file the migrations as shown below:, (*8)

'controllerMap' => [
    'migrate-webstik-telegram' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationTable' => 'migration_webstik_telega',
        'migrationPath' => '@webstik/telegramNotifications/migrations',
    ],
],

and then run the console command:, (*9)

php yii migrate-webstik-telegram

UI

After configure you can use web pages for set webhooks, token and pin-code. Just follow the link:, (*10)

/index.php?r=<moduleName>/telegram-setting, (*11)

or, (*12)

/index.php?r=telegramNotifications/telegram-setting, (*13)

or, (*14)

/telegramNotifications/telegram-setting, (*15)

Subscribed users

List of subscribed users will be available by link, (*16)

/telegramNotifications/telegram-users, (*17)

The Versions

02/05 2018

dev-master

9999999-dev

this is extension for telegramNotifications

  Sources   Download

MIT

The Requires

 

by Yana

extension yii2

02/05 2018

dev-dev

dev-dev

this is extension for telegramNotifications

  Sources   Download

MIT

The Requires

 

by Yana

extension yii2

20/04 2018

1.0.0

1.0.0.0

this is extension for telegramNotifications

  Sources   Download

MIT

The Requires

 

by Yana

extension yii2