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:

[![enter image description here](https://i.stack.imgur.com/0qFhp.png)](https://i.stack.imgur.com/0qFhp.png)