2018-04-11 14:17:45 +02:00
---
title: Getting info about the current user
description: Here's how you can fetch info about the currently logged in user
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
2018-04-01 13:19:25 +02:00
# Getting info about the current user
2018-04-11 14:17:45 +02:00
Here's how you can fetch info about the currently logged in user
2018-04-01 13:19:25 +02:00
```php
2019-10-29 22:23:35 +01:00
$me = yield $MadelineProto->getSelf();
2018-04-01 13:19:25 +02:00
\danog\MadelineProto\Logger::log("Hi ".$me['first_name']."!");
```
2020-01-05 17:55:38 +01:00
[`getSelf` ](https://docs.madelineproto.xyz/getSelf.html ) returns a [User object ](../API_docs/types/User.html ) that contains info about the currently logged in user/bot, or false if the current instance is not logged in.
2018-04-01 13:19:25 +02:00
2018-04-01 13:55:07 +02:00
< a href = "https://docs.madelineproto.xyz/docs/EXCEPTIONS.html" > Next section< / a >