bot-php-sdk icon indicating copy to clipboard operation
bot-php-sdk copied to clipboard

How to use multi bots ?

Open sallsabil opened this issue 5 years ago • 3 comments

I'm going to use multi bots but it doesn't work.

...

$c=1;
while (true) {

 $bot = new Soroush\Client( $tokens[$c] );

 $messages = $bot->getMessages();

 foreach ($messages as $message) {

 $data = $message->getData();

...

It stops at $tokens[1] and doesn't go to the next number. I really need this multi mode bots. So how can I run it correctly ?

sallsabil avatar Sep 22 '19 23:09 sallsabil