Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ccc = file_get_contents($api_url . $bot_token . "/getFile?file_id=" . $photo_profile_1280_id);
- $gettedarr = json_decode("$ccc", true);
- $filePath = $gettedarr['result']['file_path'];
- $link = "https://api.telegram.org/file/bot" . $bot_token . "/" . $filePath;
- $FileRemoto = fopen($link, "r");
- $fileCopiaPath = fopen("/home/gigiline/public_html/bot/amazonreview/image/".$folder_file."/" . $from_id . "-" . $message_id . ".jpg", "w");
- while ($contents = fread($FileRemoto, 20480)) {
- fwrite($fileCopiaPath, $contents, strlen($contents));
- }
- fclose($FileRemoto);
- fclose($fileCopiaPath);
- $link_file_external = $amazonreview_link_external . "image/".$folder_file."/" . $from_id . "-" . $message_id . ".jpg";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement