Layer 231
method
wallet.exportSecretPhrase#9077c9ac flags:# password:flags.0?InputCheckPasswordSRP = wallet.SecretPhraseParts;

Parameters

Name Type Description
Password flags.0?InputCheckPasswordSRP SRP proof of the user's 2 FA password (tg. Get Input Check Password)

Gogram Example

pwd, _ := client.AccountGetPassword()
srp, err := tg.GetInputCheckPassword("my-2fa-password", pwd)
if err != nil {
	log.Fatal(err)
}
parts, err := client.WalletExportSecretPhrase(srp)
if err != nil {
	log.Fatal(err)
}
// Next: call wallet.fetchEncryptedSecretPhrasePart with parts.Token on each of these DCs.
fmt.Println("export token:", parts.Token, "holder DCs:", parts.Dcs)