messages.reorderPinnedDialogs
Reorder pinned dialogs
Example
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.messages.reorderPinnedDialogs({
force: true,
folderId: 2182144,
order: [new Api.InputDialogPeer({...})],
}));
console.log(result); // prints the result
})();
TL schema
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int order:Vector<InputDialogPeer> = Bool;
Parameters
Name
Type
Description
force
If set, dialogs pinned server-side but not present in the order field will be unpinned.
Result
Possible errors
Code
Type
Description
400
PEER_ID_INVALID
The provided peer id is invalid
Can bots use this methd ?
yes
Related pages
Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.
Last updated
Was this helpful?