Working with Messages

We are still updating this page

Some data may be missing here — we will complete it shortly.

Scope: imbot

Who can execute the method: any user

Warning

These methods for working with messages are typically used when a user writes something, so it is essential to handle the event ONIMBOTMESSAGEADD.

Method

Description

imbot.message.add

Adds a new message from the chat bot

imbot.message.update

Updates an existing message from the chat bot

imbot.message.delete

Deletes a message from the chat bot

imbot.message.like

Likes a message from the chat bot

Event

Triggered

ONIMBOTMESSAGEADD

When a message is sent

ONIMBOTMESSAGEUPDATE

When a message from the chat bot is updated

ONIMBOTMESSAGEDELETE

When a message from the chat bot is deleted