Bitrix API

ChatService implements Errorable

Table of Contents

Interfaces

Errorable

Constants

ERROR_COULD_NOT_ADD_CHAT_ID  = 'TASKS_CHS_01'
ERROR_COULD_NOT_GET_CHATS  = 'TASKS_CHS_02'

Methods

__construct()  : mixed
getChatIds()  : array<string|int, mixed>
Returns chat ids by group id.
getErrorByCode()  : mixed
getErrors()  : mixed
saveChatId()  : bool
Creates a link with the group in order to effectively get the chat id.

Constants

ERROR_COULD_NOT_ADD_CHAT_ID

public mixed ERROR_COULD_NOT_ADD_CHAT_ID = 'TASKS_CHS_01'

ERROR_COULD_NOT_GET_CHATS

public mixed ERROR_COULD_NOT_GET_CHATS = 'TASKS_CHS_02'

Methods

getChatIds()

Returns chat ids by group id.

public getChatIds(int $groupId) : array<string|int, mixed>
Parameters
$groupId : int

Group id.

Return values
array<string|int, mixed>

getErrorByCode()

public getErrorByCode(mixed $code) : mixed
Parameters
$code : mixed

saveChatId()

Creates a link with the group in order to effectively get the chat id.

public saveChatId(int $chatId, int $groupId) : bool
Parameters
$chatId : int

Chat id.

$groupId : int

Group id.

Return values
bool

        
On this page

Search results