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

1.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
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
date int Yes date
seq int Yes

Type: Updates

Example:

$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'date' => int, 'seq' => int];

Or, if you're into Lua:

updateShortChatMessage={_='updateShortChatMessage', id=int, from_id=int, chat_id=int, message='string', pts=int, date=int, seq=int}