public function chatAddUser($chat, $user, $numberOfMessagesToFoward = 100)
    {
        return $this->exec('chat_add_user', $this->escapePeer($chat), $this->escapePeer($user),
            (int) $numberOfMessagesToFoward);
    }
public function chatAddUser($chat, $user, $numberOfMessagesToFoward = 100)
    {
        return $this->exec('chat_add_user', $this->escapePeer($chat), $this->escapePeer($user),
            (int) $numberOfMessagesToFoward);
    }
public function chatAddUser ( $ chat , $ user , $ numberOfMessagesToFoward = 100 ) { return $ this -> exec ( 'chat_add_user' , $ this -> escapePeer ( $ chat ) , $ this -> escapePeer ( $ user ) , ( int ) $ numberOfMessagesToFoward ) ; }
Adds a user to a chat.

@param string $chat The chat you want the user to add to. Gets escaped with escapePeer().
@param string $user The user you want to add. Gets escaped with escapePeer().
@param int $numberOfMessagesToFoward The number of last messages of the chat, the new user should see.
Default is 100.

@return boolean true on success, false otherwise

@uses exec()
@uses escapePeer()
Adds a user to a chat .