Raw.account.ToggleSponsoredMessages

Raw.account.ToggleSponsoredMessages

Disable or re-enable telegram ads for the current premium account.

account.toggleSponsoredMessages#b9d9a38d enabled:Bool = Bool;
export namespace Raw {
  export namespace account {
    export class ToggleSponsoredMessages {
      constructor(params: { enabled: boolean }) {}
    }
  }
}

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

Layer: 185
Constructor ID: 0xb9d9a38d

Property

  • enabled : boolean

    Enable or disable ads.

Results

boolean