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
titleTitle of the new chat; 1-128 characters
isChannelTrue, if a channel chat should be created
descriptionChat description; 0-255 characters
locationChat location if a location-based supergroup is being created
View on GitHub
Install in Dash
CreateNewSupergroupChat Structure Reference