Layer 220
method Users
channels.toggleSignatures#418d549c flags:# signatures_enabled:flags.0?true profiles_enabled:flags.1?true channel:InputChannel = Updates;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
SignaturesEnabled flags.0?true If set, enables message signatures.
ProfilesEnabled flags.1?true 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.
Channel InputChannel Channel

Returns

Updates

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this.
400 CHAT_ID_INVALID The provided chat id is invalid.
400 CHAT_NOT_MODIFIED No changes were made to chat information because the new information you passed is identical to the current information.

Gogram Example

// ChannelsToggleSignatures - using Params struct
result, err := client.ChannelsToggleSignatures(&tg.ChannelsToggleSignaturesParams{
    Channel: &tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)},

    // Optional fields:
    // SignaturesEnabled: true,
    // ProfilesEnabled: true,
})
if err != nil {
    // handle error
}
// result is *tg.Updates