MadelineProtoDocs/docs/docs/SELF.md

722 B

title description image
Getting info about the current user Here's how you can fetch info about the currently logged in user https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Getting info about the current user

Here's how you can fetch info about the currently logged in user

$me = yield $MadelineProto->getSelf();

\danog\MadelineProto\Logger::log("Hi ".$me['first_name']."!");

getSelf returns a User object that contains info about the currently logged in user/bot, or false if the current instance is not logged in.

Next section