MadelineProtoDocs/docs/getSelf.md
2020-01-05 17:55:38 +01:00

441 B

title description redirect_from
getSelf getSelf parameters, return type and example /get_self.html

Method: getSelf

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()