CheckUsername

class pyrogram.raw.functions.channels.CheckUsername

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

Details
  • Layer: 126

  • ID: 0x10e6bd2c

Parameters
  • channel (InputChannel) – The channel/supergroup that will assigned the specified username.

  • username (str) – The username to check.

Returns

bool – Primitive type.