channels.GetChannels

class pyrogram.raw.functions.channels.GetChannels

Get info about channels/supergroups

Details:
  • Layer: 223

  • 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
└── idVector < InputChannel >
├── InputChannel
│ ├── channel_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

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