channels.ToggleSignatures

class pyrogram.raw.functions.channels.ToggleSignatures

Enable/disable message signatures in channels

Details:
  • Layer: 223

  • ID: 418D549C

Parameters:
  • channel (InputChannel) – Channel

  • signatures_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:

Updates

TL Schema

channels.toggleSignatures#418d549c
flags:#
signatures_enabled:flags.0?true
profiles_enabled:flags.1?true
channel:InputChannel

= Updates

Parameter Tree

ToggleSignatures
├── signatures_enabledtrue (optional)
├── profiles_enabledtrue (optional)
└── channelInputChannel
├── InputChannel
│ ├── channel_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    ToggleSignatures(
        signatures_enabled=None,
        profiles_enabled=None,
        channel=await app.resolve_channel(chat_id),
    )
)