PHPackages                             prowebcraft/yii2-telebot - 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. [Framework](/categories/framework)
4. /
5. prowebcraft/yii2-telebot

ActiveYii2-extension[Framework](/categories/framework)

prowebcraft/yii2-telebot
========================

Telegram Bot extension for Yii2 Framework

0222PHP

Since Mar 24Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/prowebcraft/yii2-telebot)[ Packagist](https://packagist.org/packages/prowebcraft/yii2-telebot)[ RSS](/packages/prowebcraft-yii2-telebot/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-telebot
============

[](#yii2-telebot)

Telegram Bot extension for Yii2 Framework

Install
=======

[](#install)

Add dependency to your yii2 project

`composer require prowebcraft/yii2-telebot`

Add migration path to your yii2 config:

```
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationPath' => null,
        'migrationNamespaces' => [
            'console\migrations', // Common migrations for the your application
            'prowebcraft\yii2telebot\migrations', // Migrations for Yii2 Telebot
        ],
    ],
],
```

Install migrations with `php yii migrate`

This will create tables for storing bot, chat and messages in database.

Usage
=====

[](#usage)

Create Class for your bot, extended from `\prowebcraft\yii2telebot\YiiBot`

Place your bot token in Yii2 params file (for ex. :

```
