This is a Bold Text."; $txt .= "\n\nThis is an italic text. "; $txt .= "\n\nMy Link."; $txt .= "\n\nThis is a code.(copyable)"; $txt .= "\n\n
This is a test text. 
"; send_message($txt); function sendReply($url, $post_params){ $cu = curl_init(); curl_setopt($cu, CURLOPT_URL, $url); curl_setopt($cu, CURLOPT_POSTFIELDS, $post_params); curl_setopt($cu, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($cu); curl_close($cu); return$result; } function send_message($msg = 'Nam Nam'){ $reply = $msg; $url = $GLOBALS['bot_url']."/sendMessage"; $post_params = [ 'chat_id'=>$GLOBALS['chat_id'], 'text'=>$reply, 'parse_mode'=>'HTML', //2 modes of parse_mode: HTML & Markdown. ]; sendReply($url, $post_params); } ?>