package qrlogin

import (
	

	

	
)

// AcceptQR accepts given token.
//
// See https://core.telegram.org/api/qr-login#accepting-a-login-token.
func ( context.Context,  *tg.Client,  Token) (*tg.Authorization, error) {
	,  := .AuthAcceptLoginToken(, .token)
	if  != nil {
		return nil, errors.Wrap(, "accept")
	}
	return , nil
}