PHP code example of makhnanov / php-telegram-html-debug
1. Go to this page and download the library: Download makhnanov/php-telegram-html-debug 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/ */
makhnanov / php-telegram-html-debug example snippets
\TD::$token = getenv('DEBUG_BOT_TOKEN');
\TD::$chat_id = getenv('DEBUG_BOT_CHAT_ID');
\TD::$message_thread_id = getenv('DEBUG_BOT_MESSAGE_THREAD_ID');
td($exception, 'Error!');
# Or
telegram_debug($token, $chatId, $varDump, $caption, $messageThreadId);