messages.GetSavedDialogsByID

class pyrogram.raw.functions.messages.GetSavedDialogsByID

Obtain information about specific saved message dialogs » or monoforum topics ».

Details:
  • Layer: 227

  • ID: 6F6F9C96

Parameters:
  • ids (List of InputPeer) – IDs of dialogs (topics) to fetch.

  • parent_peer (InputPeer, optional) – If set, fetches monoforum topics », otherwise fetches saved message dialogs ».

Returns:

messages.SavedDialogs

TL Schema

messages.getSavedDialogsByID#6f6f9c96
flags:#
parent_peer:flags.1?InputPeer
ids:Vector<InputPeer>

= messages.SavedDialogs

Parameter Tree

GetSavedDialogsByID
├── parent_peer → InputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── ids → Vector < InputPeer >
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── channel_id → long
│ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

await app.invoke(
    GetSavedDialogsByID(
        parent_peer=await app.resolve_peer(chat_id),
        ids=[
                await app.resolve_peer(chat_id)
            ],
    )
)