channels.SetDiscussionGroup

class pyrogram.raw.functions.channels.SetDiscussionGroup

Associate a group to a channel as discussion group for that channel

Details:
  • Layer: 223

  • ID: 40582BB2

Parameters:
Returns:

bool

TL Schema

channels.setDiscussionGroup#40582bb2
broadcast:InputChannel
group:InputChannel

= Bool

Parameter Tree

SetDiscussionGroup
├── broadcastInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── groupInputChannel
├── InputChannel
│ ├── channel_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    SetDiscussionGroup(
        broadcast=await app.resolve_channel(chat_id),
        group=await app.resolve_channel(chat_id),
    )
)