2017 © Pedro Peláez
 

library telegram-channel-php

Post to your telegram channel with ease!

image

naffiq/telegram-channel-php

Post to your telegram channel with ease!

  • Monday, April 23, 2018
  • by naffiq
  • Repository
  • 2 Watchers
  • 6 Stars
  • 105 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 25 % Grown

The README.md

Telegram Channel PHP

Build Status Code Climate Test Coverage, (*1)

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

Installation

In order to install use composer:, (*3)

$ 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');

The Versions

23/04 2018

dev-master

9999999-dev

Post to your telegram channel with ease!

  Sources   Download

MIT

The Requires

 

The Development Requires

23/04 2018

v1.0.2

1.0.2.0

Post to your telegram channel with ease!

  Sources   Download

MIT

The Requires

 

The Development Requires

29/12 2017

v1.0.1

1.0.1.0

Post to your telegram channel with ease!

  Sources   Download

MIT

The Requires

 

The Development Requires

25/08 2017

v1.0.0

1.0.0.0

Post to your telegram channel with ease!

  Sources   Download

MIT

The Requires

 

The Development Requires