Views: 6809
Last Modified: 23.03.2022


MethodMethod description
im.dialog.messages.get Gets list of recent chat messages.
im.dialog.read Modifies the 'message unread' status: all messages prior the specified message (but including the message itself) are marked as read.
im.dialog.unread Modifies the 'message read' status: all messages after the specified message (but including the message itself) are marked as unread.

Attention: restCommand function is used here for illustration purposes only. It is taken from the EchoBot example. You can send a REST command with your own function, or use the BX24.callMethod or bitrix24-php-sdk methods.

Methods, indicated using javascript method BX24.callMethod:

MethodMethod description
im.dialog.users.list Gets information about chat participants (supports pagination).
im.dialog.writing Sends status "writing to...".
im.dialog.read.all Set «read» mark for all dialogs.





Courses developed by Bitrix24