Link Search Menu Expand Document

Method: stats.getStoryPublicForwards

Back to methods index

Obtain forwards of a story as a message to public chats and reposts by public channels.

Parameters:

NameTypeDescriptionRequired
peerUsername, chat ID, Update, Message or InputPeerPeer where the story was originally postedOptional
idintStory IDOptional
offsetstringOffset for pagination, from stats.PublicForwards.next_offset.Optional
limitintMaximum number of results to return, see paginationOptional

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->getStoryPublicForwards(peer: $InputPeer, id: $int, offset: 'string', limit: $int, );