Hello i have a telegram bot i made using php now in my bot the big problem is there is many commands and whenever a user type !start and at the same time other user type !info / !start then the bot giving response after the first user done then after the second.. I want to do is if a user send !start and at same time 2nd user sent then bot wont wait for end of first user bot will reply in short i want multiprocess / multi thread
if ((strpos($message, "/info") === 0)||(strpos($message, "!start") === 0)||(strpos($message, "!id") === 0)||(strpos($message, "!info") === 0)||(strpos($message, "/id") === 0)||(strpos($message, "/me") === 0)||(strpos($message, "/start") === 0)){
sendMessage($chatId, "<b>Telegram ID:</b> <code>$userId</code>%0A<b>Group ID: </b><code>$chatId</code>%0A<b>To Know Commands: /cmds</b>", $message_id);
}
This is an example code please give an sample code that i can understand / execute
Thanks:)