mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-12 09:10:31 +01:00
1.8 KiB
1.8 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
channels.reorderPinnedForumTopics | Reorder pinned forum topics | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/channels_reorderPinnedForumTopics.html |
Method: channels.reorderPinnedForumTopics
Reorder pinned forum topics
Parameters:
Name | Type | Description | Required |
---|---|---|---|
force | Bool | If not set, the order of only the topics present both server-side and in order will be changed (i.e. mentioning topics not pinned server-side in order will not pin them, and not mentioning topics pinned server-side will not unpin them). If set, the entire server-side pinned topic list will be replaced with order (i.e. mentioning topics not pinned server-side in order will pin them, and not mentioning topics pinned server-side will unpin them) |
Optional |
channel | Username, chat ID, Update, Message or InputChannel | Supergroup ID | Optional |
order | Array of int | Topic IDs » | Yes |
Return type: Updates
Can bots use this method: YES
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();
$Updates = $MadelineProto->channels->reorderPinnedForumTopics(force: $Bool, channel: $InputChannel, order: [$int, $int], );