SetSupergroupUsername
public struct SetSupergroupUsername : Codable, Equatable, TDFunction
Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel
-
Undocumented
Declaration
Swift
public typealias Result = Ok -
Identifier of the supergroup or channel
Declaration
Swift
public let supergroupId: Int32 -
New value of the username. Use an empty string to remove the username
Declaration
Swift
public let username: String -
Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel
Declaration
Swift
public init(supergroupId: Int32, username: String)Parameters
supergroupIdIdentifier of the supergroup or channel
usernameNew value of the username. Use an empty string to remove the username
View on GitHub
Install in Dash
SetSupergroupUsername Structure Reference