mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 17:55:35 +01:00
2.0 KiB
2.0 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
stats.getMessagePublicForwards | Obtains a list of messages, indicating to which other public channels was a channel message forwarded. | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/stats_getMessagePublicForwards.html |
Method: stats.getMessagePublicForwards
Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
Will return a list of messages with peer_id
equal to the public channel to which this message was forwarded.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
channel | Username, chat ID, Update, Message or InputChannel | Source channel | Optional |
msg_id | int | Source message ID | Optional |
offset | string | Offset for pagination, empty string on first call, then use the next_offset field of the returned constructor (if present, otherwise no more results are available). |
Optional |
limit | int | Maximum number of results to return, see pagination | Optional |
Return type: stats.PublicForwards
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();
$stats_PublicForwards = $MadelineProto->stats->getMessagePublicForwards(channel: $InputChannel, msg_id: $int, offset: 'string', limit: $int, );