MadelineProtoDocs/docs/get_self.md
Sean 4baac3178e Add Syntax Highlight for Markdown
Add PHP, Lua language tag to Code area
2018-10-18 00:30:20 +08:00

416 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:

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

$User = $MadelineProto->get_self();

Or, if you're into Lua:

User = get_self()