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

2.4 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
unread Bool Optional Unread?
out Bool Optional Whether the message is outgoing
mentioned Bool Optional Whether we were mentioned in the message
media_unread Bool Optional Whether there are some unread mentions in this message
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 from ID
fwd_date int Optional Fwd date
via_bot_id int Optional Info about the inline bot used to generate this message
reply_to_msg_id int Optional ID of the message this message replies to
entities Array of MessageEntity Optional Entities

Type: Updates

Example:

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

Or, if you're into Lua:

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