channels.ToggleSignatures
- class pyrogram.raw.functions.channels.ToggleSignatures
Enable/disable message signatures in channels
- Details:
Layer:
223ID:
418D549C
- Parameters:
channel (
InputChannel) – Channelsignatures_enabled (
bool, optional) – If set, enables message signatures.profiles_enabled (
bool, optional) – If set, messages from channel admins will link to their profiles, just like for group messages: can only be set if the signatures_enabled flag is set.
- Returns:
TL Schema
channels.toggleSignatures#418d549c
flags:#
signatures_enabled:flags.0?true
profiles_enabled:flags.1?true
channel:InputChannel
= Updates
Parameter Tree
ToggleSignatures
├── signatures_enabled →
true (optional)├── profiles_enabled →
true (optional)└── channel →
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(
ToggleSignatures(
signatures_enabled=None,
profiles_enabled=None,
channel=await app.resolve_channel(chat_id),
)
)