MadelineProtoDocs/old_docs/API_docs_v41/constructors/updateShortChatMessage.md
2019-12-27 17:48:04 +01:00

2.3 KiB

title description image
updateShortChatMessage Shortened constructor containing info on one new incoming text message from a chat https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateShortChatMessage

Back to constructors index

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

Attributes:

Name Type Required Description
unread Bool Optional Unread?
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
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_id Peer Optional Fwd from ID
fwd_date int Optional Fwd date
reply_to_msg_id int Optional ID of the message this message replies to
entities Array of MessageEntity Optional Entities

Type: Updates

Example:

$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'unread' => Bool, 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from_id' => Peer, 'fwd_date' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]];

Or, if you're into Lua:

updateShortChatMessage={_='updateShortChatMessage', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, id=int, from_id=int, chat_id=int, message='string', pts=int, pts_count=int, date=int, fwd_from_id=Peer, fwd_date=int, reply_to_msg_id=int, entities={MessageEntity}}