channels.ToggleAutotranslation
- class pyrogram.raw.functions.channels.ToggleAutotranslation
Toggle autotranslation in a channel, for all users: see here » for more info.
- Details:
Layer:
223ID:
167FC0A1
- Parameters:
channel (
InputChannel) – The channel where to toggle autotranslation.enabled (
bool) – Whether to enable or disable autotranslation.
- Returns:
TL Schema
channels.toggleAutotranslation#167fc0a1
channel:InputChannel
enabled:Bool
= Updates
Parameter Tree
ToggleAutotranslation
├── 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 →
BoolExample
await app.invoke(
ToggleAutotranslation(
channel=await app.resolve_channel(chat_id),
enabled=True,
)
)