sonko-dmitry/yii2-telegram-bot-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sonko-dmitry/yii2-telegram-bot-api

最新稳定版本:v1.0.0

Composer 安装命令:

composer require sonko-dmitry/yii2-telegram-bot-api

包简介

Telegram bot api component for Yii2

README 文档

README

Packagist Dependency Status Packagist Packagist

This extension is the way to integrate telegram-bot/api wrapper with your Yii2 application.

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require sonko-dmitry/yii2-telegram-bot-api:*

or add

"sonko-dmitry/yii2-telegram-bot-api": "*"

to the require section of your composer.json file.

Usage

  1. Add the component configuration in your global main.php config file:
'components' => [
    'bot' => [
        'class' => 'SonkoDmitry\Yii\TelegramBot\Component',
        'apiToken' => 'YOUR_BOT_API_TOKEN',
    ],
],
  1. Now you can use component
\Yii::$app->bot->sendMessage(1234567, 'Hello world!');

Where "1234567" receiver telegram id or chat id.

统计信息

  • 总下载量: 31.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 21
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 5
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-07-31