Layer 220
method Users
auth.acceptLoginToken#e894ad4d token:bytes = Authorization;

Parameters

Name Type Description
Token bytes Login token embedded in QR code, for more info, see login via QR code.

Returns

Authorization

Possible Errors

Code Type Description
400 AUTH_TOKEN_ALREADY_ACCEPTED The specified auth token was already accepted.
400 AUTH_TOKEN_EXCEPTION An error occurred while importing the auth token.
400 AUTH_TOKEN_EXPIRED The authorization token has expired.
400 AUTH_TOKEN_INVALIDX The specified auth token is invalid.

Gogram Example

// AuthAcceptLoginToken - positional arguments
result, err := client.AuthAcceptLoginToken([]byte{})
if err != nil {
    // handle error
}
// result is *tg.Authorization