Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $api = "ilmioapi";
- include ("http.php");
- global $api;
- $content = file_get_contents('php://input');
- $update = json_decode($content, true);
- $userID = $update[message][from][id];
- $msg = $update[message][text];
- $chatID = $update[message][chat][id];
- $messageid = $update[message][message_id];
- $replyforward = $update[message][reply_to_message][forward_from];
- $rfid = $update[message][reply_to_message][forward_from][id];
- include ("functions.php");
- //Start bot
- if($msg == "/start"){
- sm($chatID, "*Chat bot creato da* @NoEscape",'','markdown');
- }
- //Chat Function
- if($userID != ilmioid){
- $var = array(
- 'chat_id' => ilmioid,
- 'from_chat_id' => $chatID,
- 'message_id' => $messageid);
- $richiesta = new HttpRequest("get", "https://api.telegram.org/$api/forwardMessage", $var);
- }
- if($replyforward and $userID == ilmioid){
- $id = $rfid;
- sm($id, $msg);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement