2018-04-01 13:19:25 +02:00
|
|
|
---
|
|
|
|
title: MTmessage
|
2018-08-29 17:27:54 +02:00
|
|
|
description: MTProto message
|
2018-04-04 19:52:48 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
2018-04-01 13:19:25 +02:00
|
|
|
---
|
2018-04-05 01:19:57 +02:00
|
|
|
# Constructor: MTmessage
|
2018-04-01 13:19:25 +02:00
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-29 17:27:54 +02:00
|
|
|
MTProto message
|
|
|
|
|
2018-04-01 13:19:25 +02:00
|
|
|
### Attributes:
|
|
|
|
|
2018-08-29 17:27:54 +02:00
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|msg\_id|[long](../types/long.md) | Yes|Message ID|
|
|
|
|
|seqno|[int](../types/int.md) | Yes|Seqno|
|
|
|
|
|bytes|[int](../types/int.md) | Yes|Message body|
|
|
|
|
|body|[Object](../types/Object.md) | Yes|Message body|
|
2018-04-01 13:19:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [MTMessage](../types/MTMessage.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```php
|
2018-04-01 13:19:25 +02:00
|
|
|
$MTmessage = ['_' => 'MTmessage', 'msg_id' => long, 'seqno' => int, 'bytes' => int, 'body' => Object];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
Or, if you're into Lua:
|
2018-04-01 13:19:25 +02:00
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```lua
|
2018-04-01 13:19:25 +02:00
|
|
|
MTmessage={_='MTmessage', msg_id=long, seqno=int, bytes=int, body=Object}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|