Link Search Menu Expand Document

Method: bots.reorderPreviewMedias

Back to methods index

Reorder a main mini app previews, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.

Parameters:

NameTypeDescriptionRequired
botUsername, chat ID, Update, Message or InputUserThe bot that owns the Main Mini App.Optional
lang_codestringISO 639-1 language code, indicating the localization of the previews to reorder.Optional
orderArray of MessageMedia, Update, Message or InputMediaNew order of the previews.Yes

Return type: Bool

Can userbots use this method: YES

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();

$Bool = $MadelineProto->bots->reorderPreviewMedias(bot: $InputUser, lang_code: 'string', order: [$InputMedia, $InputMedia], );