Raw.channels.ToggleAntiSpam

Raw.channels.ToggleAntiSpam

Enable or disable the native antispam system.

channels.toggleAntiSpam#68f3e4eb channel:InputChannel enabled:Bool = Updates;
export namespace Raw {
  export namespace channels {
    export class ToggleAntiSpam {
      constructor(params: { channel: Raw.TypeInputChannel; enabled: boolean }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x68f3e4eb

Property

  • channel : Raw.TypeInputChannel

    Supergroup id. the specified supergroup must have at least telegramAntispamGroupSizeMin members to enable antispam functionality, as specified by the client configuration parameters.

  • enabled : boolean

    Enable or disable the native antispam system.

Results

Raw.TypeUpdates