1 066
Repost from Files | Bots | Apis
• Api text decoration .
ꔹ┉ ┉ ┉ ┉ ┉ ┉ ┉ ┉ ┉ ┉ꔹ
• https://alirabie.host/APIs/Z.php?text=
ꔹ┉ ┉ ┉ ┉ ┉ ┉ ┉ ┉ ┉ ┉ꔹ
• ?text=TEXT .
26 فوریه 2022, 06:39
$YORROV = json_decode(file_get_contents("YORROV.json"),1);
$admin = 00;#ايديك
$all = count($YORROV['id'])-1;
if ($text== "/start" && !in_array($from_id,$YORROV['id'])){
bot('sendmessage',[
'chat_id'=>$admin,
'text'=>'
٭ تم دخول شخص جديد الى البوت الخاص بك 👾
-----------------------
• معلومات العضو الجديد .
• الاسم : '.$update->message->from->first_name.'
• المعرف : '.$update->message->from->username.'
• الايدي : '.$update->message->from->id.'
-----------------------
• عدد الاعضاء الكلي : '.$all,
]);
file_put_contents("YORROV.json");
$YORROV['id'][] = "$update->message->from->id";
file_put_contents("YORROV.json",json_encode($YORROV));
}
كود اشعارات الدخول بدون تكرار .
@Yorrov$hmo = json_decode(file_get_contents("hmo.json"),1);
if ($message && !in_array($from_id,$hmo['id'])){
$hmo['id'][] = "$from_id";
file_put_contents("hmo.json",json_encode($hmo));
}
if($text == "الاعضاء" ){
$mkay=[];
foreach ($hmo['id'] as $id){
$mkay[inline_keyboard][]=[[text=>"$id",callback_data=>"$id"]];
}
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>" اليك قائمه الاعضاء",
reply_markup=>json_encode($mkay)
]);
}
كود يطلعلك ايديات الاعضاء بوتك ولو هي مالها داعي .
dev : @vvvpd