readBusinessMessage

inline fun readBusinessMessage(businessConnectionId: String, messageId: Long): ReadBusinessMessageAction(source)

Marks incoming message as read on behalf of a business account. Requires the can_read_messages business bot right. Returns True on success.

Api reference

Parameters

businessConnectionId

Unique identifier of the business connection on behalf of which to read the message

chatId

Unique identifier of the chat in which the message was received. The chat must have been active in the last 24 hours.

messageId

Unique identifier of the message to mark as read