channels.GetChannels

class pyrogram.raw.functions.channels.GetChannels

Get info about channels/supergroups

Details:
  • Layer: 227

  • ID: A7F6BBB

Parameters:

id (List of InputChannel) – IDs of channels/supergroups to get info about

Returns:

messages.Chats

TL Schema

channels.getChannels#a7f6bbb
id:Vector<InputChannel>

= messages.Chats

Parameter Tree

GetChannels
└── id → Vector < InputChannel >
├── InputChannel
│ ├── channel_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

await app.invoke(
    GetChannels(
        id=[
                await app.resolve_channel(chat_id)
            ],
    )
)