MadelineProtoDocs/docs/getSelf.md

23 lines
434 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
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();
```