# Constructor: updateNewMessage

Back to constructors index

New message in a private chat or in a legacy group.

# Attributes:

Name Type Required Description
message Message Optional Message
pts int Yes New quantity of actions in a message box
pts_count int Yes Number of generated events

# Type: Update

# Example:

$updateNewMessage = ['_' => 'updateNewMessage', 'message' => Message, 'pts' => int, 'pts_count' => int];

Or, if you’re into Lua:

updateNewMessage={_='updateNewMessage', message=Message, pts=int, pts_count=int}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.