Skip to content
Advertisement

Tag: php-telegram-bot

how can i ban some numbers from checking on bot

like if someone type command “!user 123456” then send message “number banned” I tried this but won’t worked… $ban = array(‘112233′,’123456’); if(strpos($message, “!user $ban”) ===0){ sendMessage($chatId, “<u>Number Banned!</u>”, $message_id); } Answer Instead of using strpos, if you’re going to do more commands you should parse out the action and data from the message, then you can use logic to do

Advertisement