Raw.channels.CheckUsername

Raw.channels.CheckUsername

Check if a username is free and can be assigned to a channel/supergroup

channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool;
export namespace Raw {
  export namespace channels {
    export class CheckUsername {
      constructor(params: { channel: Raw.TypeInputChannel; username: string }) {}
    }
  }
}

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

Layer: 185
Constructor ID: 0x10e6bd2c

Property

  • channel : Raw.TypeInputChannel

    The channel/supergroup that will assigned the specified username

  • username : string

    The username to check

Results

boolean