CreateNewSupergroupChat

public struct CreateNewSupergroupChat : Codable, Equatable, TDFunction

Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat

  • Undocumented

    Declaration

    Swift

    public typealias Result = Chat
  • Title of the new chat; 1-128 characters

    Declaration

    Swift

    public let title: String
  • True, if a channel chat should be created

    Declaration

    Swift

    public let isChannel: Bool
  • Chat description; 0-255 characters

    Declaration

    Swift

    public let description: String
  • Chat location if a location-based supergroup is being created

    Declaration

    Swift

    public let location: ChatLocation
  • Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat

    Declaration

    Swift

    public init(title: String, isChannel: Bool, description: String, location: ChatLocation)

    Parameters

    title

    Title of the new chat; 1-128 characters

    isChannel

    True, if a channel chat should be created

    description

    Chat description; 0-255 characters

    location

    Chat location if a location-based supergroup is being created