package auth

import (
	

	

	
)

// Bot performs bot authentication request.
func ( *Client) ( context.Context,  string) (*tg.AuthAuthorization, error) {
	,  := .api.AuthImportBotAuthorization(, &tg.AuthImportBotAuthorizationRequest{
		APIID:        .appID,
		APIHash:      .appHash,
		BotAuthToken: ,
	})
	if  != nil {
		return nil, 
	}
	,  := checkResult()
	if  != nil {
		return nil, errors.Wrap(, "check")
	}
	return , nil
}