getChannelId method

ID? getChannelId()

Gets the chat's ChannelID from the username

Implementation

ID? getChannelId() {
  if (username != null) return ChannelID(username!);
  return null;
}