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

408 B

title description
get_dialogs get_dialogs parameters, return type and example

Method: get_dialogs

Gets full list of dialogs

Return type: Array of Peer objects

Example:

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

$Peers = $MadelineProto->get_dialogs();

Or, if you're into Lua:

Peers = get_dialogs()