Answers for "how to set link in php telegram bot message"

PHP
1

how to create a bot in telegram in php

define('BASIC_API_URL', 'https://api.telegram.org/bot<BOT_TOKEN>/');public function make(string $action): array {    $curlInit = curl_init();    curl_setopt($curlInit, CURLOPT_URL, BASIC_API_URL . $action);    $curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);    $output = curl_exec($ch);    curl_close($curlInit);    return json_decode($output, true);}
Posted by: Guest on November-04-2021
0

php send telegram message to user

$token = "<insert bot token here>";
$chatid = "<chatID>";
sendMessage($chatid, "Hello World", $token);
Posted by: Guest on August-31-2021

Code answers related to "how to set link in php telegram bot message"

Browse Popular Code Answers by Language