1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-14 03:07:21 +01:00
MadelineProto/docs/API_docs/constructors/updateUserStatus.md

39 lines
697 B
Markdown
Raw Normal View History

2016-12-20 13:15:22 +01:00
---
title: updateUserStatus
description: User went online/offline
2016-12-20 13:15:22 +01:00
---
## Constructor: updateUserStatus
2016-12-20 13:15:22 +01:00
[Back to constructors index](index.md)
User went online/offline
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|user\_id|[int](../types/int.md) | Yes|User identifier|
|status|[UserStatus](../types/UserStatus.md) | Yes|New user status|
2016-12-19 18:56:05 +01:00
### Type: [Update](../types/Update.md)
### Example:
```
2016-12-30 21:21:36 +01:00
$updateUserStatus = ['_' => 'updateUserStatus', 'user_id' => int, 'status' => UserStatus, ];
```
Or, if you're into Lua:
```
updateUserStatus={_='updateUserStatus', user_id=int, status=UserStatus, }
```