mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 17:55:35 +01:00
2.4 KiB
2.4 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
messages.getReplies | Get messages in a reply thread | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/messages_getReplies.html |
Method: messages.getReplies
Get messages in a reply thread
Parameters:
Name | Type | Description | Required |
---|---|---|---|
peer | Username, chat ID, Update, Message or InputPeer | Peer | Optional |
msg_id | int | Message ID | Optional |
offset_id | int | Offsets for pagination, for more info click here | Optional |
offset_date | int | Offsets for pagination, for more info click here | Optional |
add_offset | int | Offsets for pagination, for more info click here | Optional |
limit | int | Maximum number of results to return, see pagination | Optional |
max_id | int | If a positive value was transferred, the method will return only messages with ID smaller than max_id | Optional |
min_id | int | If a positive value was transferred, the method will return only messages with ID bigger than min_id | Optional |
hash | Array of [long|string](/API_docs/types/long | string.html) | Hash for pagination, for more info click here |
Return type: messages.Messages
Can bots use this method: NO
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: [$long|string, $long|string], );