Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=84662
Postga havola
Qobilov_Sardor [379] [off]
Hikoya.tk dagi maqolalarni telegram kanalda chiqarish uchun shu kodni yozsham kanalda avto chiqadimi.
// $asptoken = "321707943:AAHeDB5zJh3rDPU_N886PwpfvMPMkXvwnII"; // $canallink= "@hikoya_tk"; // $photo = 'http://hikoya.tk/files/library/big/'.$cid.'.jpg'; $text1 = $_POST['name']; $text1 .= "\n"; $text1 .= $_POST['text']; $text1 .= "\n"; $text1 .= $photo ; $text1 .= "\n"; $text1.= "hikoya.tk/library/index.php?id=".$cid; $text1 = functions::rus_lat($text1); $aspurl = "https://api.telegram.org/bot".$asptoken; /* $bot_id= "321707943:AAHeDB5zJh3rDPU_N886PwpfvMPMkXvwnII"; $telegram = new Telegram($bot_id); $chat_id = "@hikoya_tk"; $text1 = $_POST['name']; $text1 .= "\n"; $text1.= "hikoya.tk/library/index.php?id=".$cid; $photo = 'http://hikoya.tk/files/library/big/'.$cid.'.jpg'; $text1 = str_replace('','',$text1); $text1 = str_replace('','',$text1); $text1 = str_replace('','',$text1); $text1 = str_replace('','',$text1); $text1 = functions::rus_lat($text1); $img = ('http://hikoya.tk/files/lobrary/big/'.$cid.'.jpg','image/jpg'); $content = array('chat_id' => $chat_id, 'photo' => $img, 'caption' => $text1 ); $telegram->sendPhoto($content);