function SendMessage($ChatId, $TextMsg)
{
bot('sendMessage',[
'chat_id'=>$ChatId,
'text'=>$TextMsg,
'parse_mode'=>"html"
]);
}
$f = fopen("members.txt", "r");
while(!feof($f)) {
bot('sendMessage',[
'chat_id'=>fgets($f),
'text'=>"Salom",
]);
}
fclose($f);
Manashunda hamma bot foydalanuvchilariga salom deb yuboradi. Ammo Salomni o'rniga $textmessage ni qo'ya olmayapman.
Ya`ni adminni taniydigan bot qildim, va admindan xabar yuborish degan tugma hosil qildim, Admin yozgan narsani hamma foydalanuvchiga yubormoqchiman. Yordam beringlar