Layer 220
method Users Bots
auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;

Parameters

Name Type Description
Flags int Reserved for future use
ApiId int Application identifier (see. App configuration )
ApiHash string Application identifier hash (see. App configuration )
BotAuthToken string Bot token (see bots )

Possible Errors

Code Type Description
400 ACCESS_TOKEN_EXPIRED Access token expired.
400 ACCESS_TOKEN_INVALID Access token invalid.
400 API_ID_INVALID API ID invalid.
400 API_ID_PUBLISHED_FLOOD This API id was published somewhere, you can't use it now.

Gogram Example

// AuthImportBotAuthorization - positional arguments
result, err := client.AuthImportBotAuthorization(0, "...", "...")
if err != nil {
    // handle error
}
// result is *tg.AuthAuthorization