Method: channels.reorderPinnedForumTopics
Back to methods index
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
|
Can bots use this method:
YES
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
],
);