1.1 KiB
1.1 KiB
title | description | image |
---|---|---|
message | Message | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: message
Message
Attributes:
Name | Type | Required | Description |
---|---|---|---|
id | int | Yes | ID |
from_id | int | Yes | From ID |
to_id | Peer | Yes | To ID |
date | int | Yes | Date |
message | string | Yes | Message |
media | MessageMedia | Optional | Media |
Type: Message
Example:
$message = ['_' => 'message', 'id' => int, 'from_id' => int, 'to_id' => Peer, 'date' => int, 'message' => 'string', 'media' => MessageMedia];
PWRTelegram json-encoded version:
{"_": "message", "id": int, "from_id": int, "to_id": Peer, "date": int, "message": "string", "media": MessageMedia}
Or, if you're into Lua:
message={_='message', id=int, from_id=int, to_id=Peer, date=int, message='string', media=MessageMedia}