channels.ToggleForum
- class pyrogram.raw.functions.channels.ToggleForum
Enable or disable forum functionality in a supergroup.
- Details:
Layer:
223ID:
3FF75734
- Parameters:
channel (
InputChannel) – Supergroup IDenabled (
bool) – Enable or disable forum functionalitytabs (
bool) – If true enables the tabbed forum UI, otherwise enables the list-based forum UI.
- Returns:
TL Schema
channels.toggleForum#3ff75734
channel:InputChannel
enabled:Bool
tabs:Bool
= Updates
Parameter Tree
ToggleForum
├── channel →
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├── enabled →
Bool└── tabs →
BoolExample
await app.invoke(
ToggleForum(
channel=await app.resolve_channel(chat_id),
enabled=True,
tabs=True,
)
)