# Constructor: updateShortChatMessage

Back to constructors index

Shortened constructor containing info on one new incoming text message from a chat

# Attributes:

Name Type Required Description
out Bool Optional Whether the message is outgoing
mentioned Bool Optional Whether we were mentioned in this message
media_unread Bool Optional Whether the message contains some unread mentions
silent Bool Optional If true, the message is a silent message, no notifications should be triggered
id int Yes ID of the message
from_id int Yes ID of the sender of the message
chat_id int Yes ID of the chat where the message was sent
message string Yes Message
pts int Yes PTS
pts_count int Yes PTS count
date int Yes date
fwd_from MessageFwdHeader Optional Info about a forwarded message
via_bot_id int Optional Info about the inline bot used to generate this message
reply_to MessageReplyHeader Optional  
entities Array of MessageEntity Optional Entities for styled text

# Type: Updates

# Example:

$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to' => MessageReplyHeader, 'entities' => [MessageEntity, MessageEntity]];

Or, if you’re into Lua:

updateShortChatMessage={_='updateShortChatMessage', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, id=int, from_id=int, chat_id=int, message='string', pts=int, pts_count=int, date=int, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to=MessageReplyHeader, entities={MessageEntity}}

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