Instance Method

setUsername(to:then:)

Sets bot’s username

Declaration

func setUsername(to name: String, then completion: ((User?, RequestError?) -> Void)? = nil)

Parameters

name

Name to set bot’s username to