Bitrix24\Im\Chat::updateTitle PHP Method

updateTitle() public method

update title
public updateTitle ( integer $chatId, string $newTitle ) : array
$chatId integer
$newTitle string
return array
    public function updateTitle($chatId, $newTitle)
    {
        return $this->client->call('im.chat.updateTitle', array('chat_id' => (int) $chatId, 'title' => (string) $newTitle));
    }

Usage Example

Example #1
0
 /**
  * @covers \Bitrix24\Im\Chat::updateTitle
  */
 public function testUpdateTitleWithNullTitle()
 {
     $obChat = new Chat($this->bitrix24App);
     $obChat->updateTitle($this->defaultChatId, null);
 }