MadelineProtoDocs/docs/getSelf.md

414 B

title description
get_self get_self parameters, return type and example

Method: get_self

Gets info about the currently logged-in user.

No parameters

Return type: User object

Example (now fully async!):

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

Or, if you're into Lua:

User = getSelf()