CheckAuthenticationBotToken
public struct CheckAuthenticationBotToken : Codable, Equatable, TDFunction
Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in
-
Undocumented
Declaration
Swift
public typealias Result = Ok
-
The bot token
Declaration
Swift
public let token: String
-
Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in
Declaration
Swift
public init(token: String)
Parameters
token
The bot token