1.7 KiB
1.7 KiB
title | description | image | redirect_from |
---|---|---|---|
messages.getReplies | messages.getReplies parameters, return type and example | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/messages_getReplies.html |
Method: messages.getReplies
Parameters:
Name | Type | Required |
---|---|---|
peer | Username, chat ID, Update, Message or InputPeer | Optional |
msg_id | int | Yes |
offset_id | int | Yes |
offset_date | int | Yes |
add_offset | int | Yes |
limit | int | Yes |
max_id | int | Yes |
min_id | int | Yes |
hash | Array of int | Optional |
Return type: messages.Messages
Can bots use this method: YES
MadelineProto Example (now async for huge speed and parallelism!):
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages.Messages = $MadelineProto->messages->getReplies(['peer' => InputPeer, 'msg_id' => int, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, 'hash' => [int, int], ]);
Or, if you're into Lua:
messages.Messages = messages.getReplies({peer=InputPeer, msg_id=int, offset_id=int, offset_date=int, add_offset=int, limit=int, max_id=int, min_id=int, hash={int}, })