bot-php-sdk
bot-php-sdk copied to clipboard
How to use multi bots ?
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 ?