定制 naffiq/telegram-channel-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

naffiq/telegram-channel-php

最新稳定版本:v1.0.2

Composer 安装命令:

composer require naffiq/telegram-channel-php

包简介

Post to your telegram channel with ease!

README 文档

README

Build Status Code Climate Test Coverage

This little lib (1 class only!) helps you to push messages to your telegram channel via bot.

Installation

In order to install use composer:

$ composer require naffiq/telegram-channel-php

Usage

  1. Create bot via BotFather and get BOT_TOKEN from it
  2. Add it as an admin to your channel
  3. Follow examples below to post messages or photos:

Post message

<?php

$manager = new \naffiq\telegram\channel\Manager(BOT_TOKEN, CHANNEL_NAME);

$manager->postMessage('Hello, fellas!');

Post photo

<?php

$manager = new \naffiq\telegram\channel\Manager(BOT_TOKEN, CHANNEL_NAME);

$manager->postPhoto(__DIR__ . '/photo.jpeg', 'Put your label here');

统计信息

  • 总下载量: 3.95k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-25