channels.SetDiscussionGroup

class pyrogram.raw.functions.channels.SetDiscussionGroup

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

Details:
  • Layer: 227

  • ID: 40582BB2

Parameters:
Returns:

bool

TL Schema

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

= Bool

Parameter Tree

SetDiscussionGroup
├── broadcast → InputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── group → 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(
    SetDiscussionGroup(
        broadcast=await app.resolve_channel(chat_id),
        group=await app.resolve_channel(chat_id),
    )
)