Telegram Group & Telegram Channel
$bot_url = "https://api.telegram.org/botتوكن/";
$url = $bot_url . "sendMessage?chat_id=" . $chat_id ;
$post_fields = array('chat_id' => $chat_id,
'text' => $unstalled,
'reply_markup' => '{"inline_keyboard":[[{"text":'.'"@'.$json_data["result"]["username"].'"'.',"url":'.'"'."http://www.group-telegram.com/".$json_data["result"]["username"].'"'.'}]]}' ,
'disable_web_page_preview'=>"true"
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Content-Type:multipart/form-data"
));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
$output = curl_exec($ch);
$textinstall = "
😃 اهلا بك في بوتك الشخصي ";
$install = "http://api.telegram.org/bot".$matches[0]."/sendMessage?chat_id=".$chat_id."&text=".$textinstall;
$json = file_get_contents($install);
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "لا يمكنك صنع اكثر من. بوت واحد !💡"));
}
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "التوكن غير صحيح
يرجى ارسال التوكن الصحيح "));
}
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "التوكن غير صحيح
يرجى ارسال التوكن الصحيح "));
}
} else if (strpos($text, "/stop") === 0) {
// stop now
} else {
apiRequestWebhook("sendMessage", array('chat_id' => $chat_id, "reply_to_message_id" => $message_id, "text" => ' عذرا هناك خطا!
🌀ارسل /start من فضلك 💡'));
}
} else {
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => ' عذرا هناك خطا!
🌀ارسل /start من فضلك 💡'));
}
}
define('WEBHOOK_URL', 'https://alij22189.000webhostapp.com/sendtoall.php');
if (php_sapi_name() == 'cli') {
// if run from console, set or delete webhook
apiRequest('setWebhook', array('url' => isset($argv[1]) && $argv[1] == 'delete' ? '' : WEBHOOK_URL));
exit;
}
$content = file_get_contents("php://input");
$update = json_decode($content, true);
if (!$update) {
// receive wrong update, must not happen
exit;
}
if (isset($update["message"])) {
processMessage($update["message"]);
}



group-telegram.com/lmhms/6
Create:
Last Update:

$bot_url = "https://api.telegram.org/botتوكن/";
$url = $bot_url . "sendMessage?chat_id=" . $chat_id ;
$post_fields = array('chat_id' => $chat_id,
'text' => $unstalled,
'reply_markup' => '{"inline_keyboard":[[{"text":'.'"@'.$json_data["result"]["username"].'"'.',"url":'.'"'."http://www.group-telegram.com/".$json_data["result"]["username"].'"'.'}]]}' ,
'disable_web_page_preview'=>"true"
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Content-Type:multipart/form-data"
));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
$output = curl_exec($ch);
$textinstall = "
😃 اهلا بك في بوتك الشخصي ";
$install = "http://api.telegram.org/bot".$matches[0]."/sendMessage?chat_id=".$chat_id."&text=".$textinstall;
$json = file_get_contents($install);
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "لا يمكنك صنع اكثر من. بوت واحد !💡"));
}
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "التوكن غير صحيح
يرجى ارسال التوكن الصحيح "));
}
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "التوكن غير صحيح
يرجى ارسال التوكن الصحيح "));
}
} else if (strpos($text, "/stop") === 0) {
// stop now
} else {
apiRequestWebhook("sendMessage", array('chat_id' => $chat_id, "reply_to_message_id" => $message_id, "text" => ' عذرا هناك خطا!
🌀ارسل /start من فضلك 💡'));
}
} else {
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => ' عذرا هناك خطا!
🌀ارسل /start من فضلك 💡'));
}
}
define('WEBHOOK_URL', 'https://alij22189.000webhostapp.com/sendtoall.php');
if (php_sapi_name() == 'cli') {
// if run from console, set or delete webhook
apiRequest('setWebhook', array('url' => isset($argv[1]) && $argv[1] == 'delete' ? '' : WEBHOOK_URL));
exit;
}
$content = file_get_contents("php://input");
$update = json_decode($content, true);
if (!$update) {
// receive wrong update, must not happen
exit;
}
if (isset($update["message"])) {
processMessage($update["message"]);
}

BY للمحترفين


Warning: Undefined variable $i in /var/www/group-telegram/post.php on line 260

Share with your friend now:
group-telegram.com/lmhms/6

View MORE
Open in Telegram


Telegram | DID YOU KNOW?

Date: |

Telegram users are able to send files of any type up to 2GB each and access them from any device, with no limit on cloud storage, which has made downloading files more popular on the platform. Anastasia Vlasova/Getty Images The original Telegram channel has expanded into a web of accounts for different locations, including specific pages made for individual Russian cities. There's also an English-language website, which states it is owned by the people who run the Telegram channels. Stocks dropped on Friday afternoon, as gains made earlier in the day on hopes for diplomatic progress between Russia and Ukraine turned to losses. Technology stocks were hit particularly hard by higher bond yields. Emerson Brooking, a disinformation expert at the Atlantic Council's Digital Forensic Research Lab, said: "Back in the Wild West period of content moderation, like 2014 or 2015, maybe they could have gotten away with it, but it stands in marked contrast with how other companies run themselves today."
from tw


Telegram للمحترفين
FROM American