Link Search Menu Expand Document

Method: stories.getStoriesArchive

Back to methods index

Fetch the story archive » of a peer we control.


peerUsername, chat ID, Update, Message or InputPeerPeer whose archived stories should be fetchedOptional
offset_idintOffsets for pagination, for more info click hereOptional
limitintMaximum number of results to return, see paginationOptional

Return type: stories.Stories

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$stories_Stories = $MadelineProto->stories->getStoriesArchive(peer: $InputPeer, offset_id: $int, limit: $int, );