2017-01-02 19:50:37 +01:00
|
|
|
---
|
|
|
|
title: messageService
|
|
|
|
description: messageService attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: messageService
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
|
|
|
|unread|[Bool](../types/Bool.md) | Optional|
|
|
|
|
|out|[Bool](../types/Bool.md) | Optional|
|
|
|
|
|mentioned|[Bool](../types/Bool.md) | Optional|
|
|
|
|
|media\_unread|[Bool](../types/Bool.md) | Optional|
|
|
|
|
|id|[int](../types/int.md) | Required|
|
|
|
|
|from\_id|[int](../types/int.md) | Optional|
|
|
|
|
|to\_id|[Peer](../types/Peer.md) | Required|
|
|
|
|
|date|[int](../types/int.md) | Required|
|
|
|
|
|action|[MessageAction](../types/MessageAction.md) | Required|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-25 23:16:22 +01:00
|
|
|
### Type: [Message](../types/Message.md)
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$messageService = ['_' => 'messageService', 'unread' => true, 'out' => true, 'mentioned' => true, 'media_unread' => true, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'date' => int, 'action' => MessageAction, ];
|
Added docs for layer 18, 23, 25, 27, 33, 38, 40, 41, 42, 44, 45, 46, 51, 53, 55
2017-01-02 21:04:36 +01:00
|
|
|
```
|
|
|
|
|