updateShortChatMessage

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

updateShortChatMessage#16812688 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to_msg_id:flags.3?int entities:flags.7?Vector<MessageEntity> = Updates;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
out flags.1?true Whether the message is outgoing
mentioned flags.4?true Whether we were mentioned in this message
media_unread flags.5?true Whether the message contains some unread mentions
silent flags.13?true If true, the message is a silent message, no notifications should be triggered
id int ID of the message
from_id int ID of the sender of the message
chat_id int ID of the chat where the message was sent
message string Message
pts int PTS
pts_count int PTS count
date int date
fwd_from flags.2?MessageFwdHeader Info about a forwarded message
via_bot_id flags.11?int Info about the inline bot used to generate this message
reply_to_msg_id flags.3?int ID of the message this message replies to
entities flags.7?Vector<MessageEntity> Entities for styled text

Type

Updates

Related pages

Working with Updates

How to subscribe to updates and handle them properly.

Styled text with message entities

How to create styled text with message entities