MadelineProto/old_docs/API_docs_v25/constructors/messageService.md

47 lines
994 B
Markdown
Raw Normal View History

---
title: messageService
description: messageService attributes, type and example
---
## Constructor: messageService
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|
|id|[int](../types/int.md) | Yes|
|from\_id|[int](../types/int.md) | Yes|
|to\_id|[Peer](../types/Peer.md) | Yes|
|date|[int](../types/int.md) | Yes|
|action|[MessageAction](../types/MessageAction.md) | Optional|
### Type: [Message](../types/Message.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$messageService = ['_' => 'messageService', 'id' => int, 'from_id' => int, 'to_id' => Peer, 'date' => int, 'action' => MessageAction];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "messageService", "id": int, "from_id": int, "to_id": Peer, "date": int, "action": MessageAction}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
messageService={_='messageService', id=int, from_id=int, to_id=Peer, date=int, action=MessageAction}
```