PHP code example of naffiq / telegram-channel-php
1. Go to this page and download the library: Download naffiq/telegram-channel-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
naffiq / telegram-channel-php example snippets
$manager = new \naffiq\telegram\channel\Manager(BOT_TOKEN, CHANNEL_NAME);
$manager->postMessage('Hello, fellas!');
$manager = new \naffiq\telegram\channel\Manager(BOT_TOKEN, CHANNEL_NAME);
$manager->postPhoto(__DIR__ . '/photo.jpeg', 'Put your label here');
$ composer