echo bbcode::auto_smileys('add', 'message');
default: $who = mysql_result(mysql_query(' select count(*) from `users` where `place` = "mchat" and `lastdate`+300 > '.time().''), 0); echo '<div class="header"> <b>Muloqot</b></div>'; if ($user_id){ echo '<div class="menu"><form action="?act=add" name="add" method="post"><b><font color="red">*</font> Matn:</b><br />';
// $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);