channels.SetDiscussionGroup
- class pyrogram.raw.functions.channels.SetDiscussionGroup
Associate a group to a channel as discussion group for that channel
- Details:
Layer:
223ID:
40582BB2
- Parameters:
broadcast (
InputChannel) – Channelgroup (
InputChannel) – Discussion group to associate to the channel
- 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│ └──
InputChannelFromMessage│ ├── 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│ ├──
InputPeerUserFromMessage├── msg_id →
int└── channel_id →
longExample
await app.invoke(
SetDiscussionGroup(
broadcast=await app.resolve_channel(chat_id),
group=await app.resolve_channel(chat_id),
)
)