MadelineProtoDocs/old_docs/API_docs_v5/constructors/updateShortMessage.md
2020-06-16 17:50:25 +02:00

1.8 KiB

title description image
updateShortMessage Info about a message sent to (received from) another user https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateShortMessage

Back to constructors index

Info about a message sent to (received from) another user

Attributes:

Name Type Required Description
id int Yes The message ID
user_id int Yes The ID of the sender (if outgoing will be the ID of the destination) of the message
message string Yes The message
pts int Yes PTS
pts_count int Yes PTS count
date int Yes date
fwd_from_id Peer Optional
fwd_date int Optional
reply_to_msg_id int Optional ID of the message this message replies to
entities Array of MessageEntity Optional Entities for styled text

Type: Updates

Example:

$updateShortMessage = ['_' => 'updateShortMessage', 'id' => int, 'user_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:

updateShortMessage={_='updateShortMessage', id=int, user_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}}