Getting info about the current user
Getting info about the current user
Hereโs how you can fetch info about the currently logged in user
$me = $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.