channels.CheckUsername

class pyrogram.raw.functions.channels.CheckUsername

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

Details:
  • Layer: 194

  • ID: 10E6BD2C

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

  • username (str) – The username to check

Returns:

bool