Method: get_self

Gets info about the currently logged-in user.

No parameters

Return type: User object

Example:

$MadelineProto = new \danog\MadelineProto\API();
$MadelineProto->start();

$User = $MadelineProto->get_self();

Or, if you’re into Lua:

User = get_self()
This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.