add() public method

create new chat
public add ( string $title, string $description = '', string $color = '', string $message = '', array $users = [], string $avatarImgInBase64 = null, boolean $isOpen = false ) : array
$title string
$description string
$color string chat color in Bitrix24\Presets\Im\iChatColor for mobile
$message string
$users array
$avatarImgInBase64 string
$isOpen boolean
return array
Example #1
0
 /**
  * @covers \Bitrix24\Im\Chat::add
  */
 public function testAddChatWithTitleAndDescription()
 {
     $obChat = new Chat($this->bitrix24App);
     $obChat->add('chat title', 'chat description');
 }