I'm making a Control Panel to manage my Telegram Bot using Telegram Bot API & PHP.
Basically, I want to display every message by a single user in a small chat box.
Because there are potentially more users who had sent message to the Bot, I have to check that if the user_id of sender is not duplicated and repeated again then make a new chat box for the new sender.
In order to do this I grabbed the number of arrays in the result
and did this:
PRIVATE CODE
As you can see at the beginning of the code I made the variable store_id to save the FIRST sender_id and if this sender_id is repeated again then continue with the for loop till the $i is less than $num.
But the problem is it does not show anything at all. I mean no error and no result!
What is going wrong here, what should I do?
UPDATE:
PRIVATE CODE
But again the result is: