MadelineProto/docs/docs/SELF.md
Daniil Gentili e39ce11798 Fix docs
2018-03-20 15:02:36 +00:00

456 B

Getting info about the current user

$me = $MadelineProto->get_self();

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

get_self 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