1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-04 10:28:32 +01:00
MadelineProto/old_docs/API_docs_v18/constructors/userDeleted.md

42 lines
1.0 KiB
Markdown
Raw Normal View History

---
title: userDeleted
description: userDeleted attributes, type and example
---
## Constructor: userDeleted
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
|id|[int](../types/int.md) | Required|
|first\_name|[string](../types/string.md) | Required|
|last\_name|[string](../types/string.md) | Required|
|username|[string](../types/string.md) | Required|
### Type: [User](../types/User.md)
### Example:
```
$userDeleted = ['_' => 'userDeleted', 'id' => int, 'first_name' => string, 'last_name' => string, 'username' => string, ];
```
The following syntaxes can also be used:
```
$userDeleted = '@username'; // Username
$userDeleted = 44700; // bot API id (users)
$userDeleted = -492772765; // bot API id (chats)
$userDeleted = -10038575794; // bot API id (channels)
$userDeleted = 'user#44700'; // tg-cli style id (users)
$userDeleted = 'chat#492772765'; // tg-cli style id (chats)
$userDeleted = 'channel#38575794'; // tg-cli style id (channels)
```