MadelineProtoDocs/docs/getSelf.md
2024-05-01 14:53:46 +02:00

23 lines
434 B
Markdown

---
title: getSelf
description: getSelf parameters, return type and example
redirect_from: /get_self.html
grand_parent: "Telegram RPC API"
parent: "Methods"
---
## Method: getSelf
Gets info about the currently logged-in user.
No parameters
### Return type: [User object](API_docs/types/User.html)
### Example ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
$User = $MadelineProto->getSelf();
```