PHP code example of appzz / telegram-message
1. Go to this page and download the library: Download appzz/telegram-message 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/ */
appzz / telegram-message example snippets
$tg = TelegramMessage::factory ();
$tg->token('00000000000000000000000000000000000000000000000');
$tg->chat_id('-0000000000000000000');
//$tg->markdown();
$tg->text("Ut semper!!!");
//$tg->silent(true);
$result = $tg->send();