1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 00:26:57 +01:00
MadelineProto/docs/TD_docs/constructors/updateUserAction.md

47 lines
979 B
Markdown
Raw Normal View History

---
title: updateUserAction
description: Some chat activity
---
## Constructor: updateUserAction
[Back to constructors index](index.md)
Some chat activity
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
|user\_id|[int](../types/int.md) | Yes|Identifier of user doing action|
|action|[SendMessageAction](../types/SendMessageAction.md) | Yes|Action description|
### Type: [Update](../types/Update.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$updateUserAction = ['_' => 'updateUserAction', 'chat_id' => long, 'user_id' => int, 'action' => SendMessageAction];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "updateUserAction", "chat_id": long, "user_id": int, "action": SendMessageAction}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
updateUserAction={_='updateUserAction', chat_id=long, user_id=int, action=SendMessageAction}
```