Documentation ¶
Index ¶
- type AuthServiceImpl
- func (s *AuthServiceImpl) AuthBindTempAuthKey(ctx context.Context, request *mtproto.TLAuthBindTempAuthKey) (*mtproto.Bool, error)
- func (s *AuthServiceImpl) AuthCancelCode(ctx context.Context, request *mtproto.TLAuthCancelCode) (*mtproto.Bool, error)
- func (s *AuthServiceImpl) AuthCheckPassword(ctx context.Context, request *mtproto.TLAuthCheckPassword) (*mtproto.Auth_Authorization, error)
- func (s *AuthServiceImpl) AuthCheckPhone(ctx context.Context, request *mtproto.TLAuthCheckPhone) (*mtproto.Auth_CheckedPhone, error)
- func (s *AuthServiceImpl) AuthDropTempAuthKeys(ctx context.Context, request *mtproto.TLAuthDropTempAuthKeys) (*mtproto.Bool, error)
- func (s *AuthServiceImpl) AuthExportAuthorization(ctx context.Context, request *mtproto.TLAuthExportAuthorization) (*mtproto.Auth_ExportedAuthorization, error)
- func (s *AuthServiceImpl) AuthImportAuthorization(ctx context.Context, request *mtproto.TLAuthImportAuthorization) (*mtproto.Auth_Authorization, error)
- func (s *AuthServiceImpl) AuthImportBotAuthorization(ctx context.Context, request *mtproto.TLAuthImportBotAuthorization) (*mtproto.Auth_Authorization, error)
- func (s *AuthServiceImpl) AuthLogOut(ctx context.Context, request *mtproto.TLAuthLogOut) (*mtproto.Bool, error)
- func (s *AuthServiceImpl) AuthRecoverPassword(ctx context.Context, request *mtproto.TLAuthRecoverPassword) (*mtproto.Auth_Authorization, error)
- func (s *AuthServiceImpl) AuthRequestPasswordRecovery(ctx context.Context, request *mtproto.TLAuthRequestPasswordRecovery) (*mtproto.Auth_PasswordRecovery, error)
- func (s *AuthServiceImpl) AuthResendCode(ctx context.Context, request *mtproto.TLAuthResendCode) (*mtproto.Auth_SentCode, error)
- func (s *AuthServiceImpl) AuthResetAuthorizations(ctx context.Context, request *mtproto.TLAuthResetAuthorizations) (*mtproto.Bool, error)
- func (s *AuthServiceImpl) AuthSendCode(ctx context.Context, request *mtproto.TLAuthSendCode) (*mtproto.Auth_SentCode, error)
- func (s *AuthServiceImpl) AuthSendCodeLayer51(ctx context.Context, request *mtproto.TLAuthSendCodeLayer51) (*mtproto.Auth_SentCode, error)
- func (s *AuthServiceImpl) AuthSendInvites(ctx context.Context, request *mtproto.TLAuthSendInvites) (*mtproto.Bool, error)
- func (s *AuthServiceImpl) AuthSignIn(ctx context.Context, request *mtproto.TLAuthSignIn) (*mtproto.Auth_Authorization, error)
- func (s *AuthServiceImpl) AuthSignUp(ctx context.Context, request *mtproto.TLAuthSignUp) (*mtproto.Auth_Authorization, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServiceImpl ¶
type AuthServiceImpl struct { }
func (*AuthServiceImpl) AuthBindTempAuthKey ¶
func (s *AuthServiceImpl) AuthBindTempAuthKey(ctx context.Context, request *mtproto.TLAuthBindTempAuthKey) (*mtproto.Bool, error)
auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;
func (*AuthServiceImpl) AuthCancelCode ¶
func (s *AuthServiceImpl) AuthCancelCode(ctx context.Context, request *mtproto.TLAuthCancelCode) (*mtproto.Bool, error)
auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;
func (*AuthServiceImpl) AuthCheckPassword ¶
func (s *AuthServiceImpl) AuthCheckPassword(ctx context.Context, request *mtproto.TLAuthCheckPassword) (*mtproto.Auth_Authorization, error)
auth.checkPassword#a63011e password_hash:bytes = auth.Authorization;
func (*AuthServiceImpl) AuthCheckPhone ¶
func (s *AuthServiceImpl) AuthCheckPhone(ctx context.Context, request *mtproto.TLAuthCheckPhone) (*mtproto.Auth_CheckedPhone, error)
auth.checkPhone#6fe51dfb phone_number:string = auth.CheckedPhone;
func (*AuthServiceImpl) AuthDropTempAuthKeys ¶
func (s *AuthServiceImpl) AuthDropTempAuthKeys(ctx context.Context, request *mtproto.TLAuthDropTempAuthKeys) (*mtproto.Bool, error)
auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool;
func (*AuthServiceImpl) AuthExportAuthorization ¶
func (s *AuthServiceImpl) AuthExportAuthorization(ctx context.Context, request *mtproto.TLAuthExportAuthorization) (*mtproto.Auth_ExportedAuthorization, error)
auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization;
func (*AuthServiceImpl) AuthImportAuthorization ¶
func (s *AuthServiceImpl) AuthImportAuthorization(ctx context.Context, request *mtproto.TLAuthImportAuthorization) (*mtproto.Auth_Authorization, error)
auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization;
func (*AuthServiceImpl) AuthImportBotAuthorization ¶
func (s *AuthServiceImpl) AuthImportBotAuthorization(ctx context.Context, request *mtproto.TLAuthImportBotAuthorization) (*mtproto.Auth_Authorization, error)
auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;
func (*AuthServiceImpl) AuthLogOut ¶
func (s *AuthServiceImpl) AuthLogOut(ctx context.Context, request *mtproto.TLAuthLogOut) (*mtproto.Bool, error)
auth.logOut#5717da40 = Bool;
func (*AuthServiceImpl) AuthRecoverPassword ¶
func (s *AuthServiceImpl) AuthRecoverPassword(ctx context.Context, request *mtproto.TLAuthRecoverPassword) (*mtproto.Auth_Authorization, error)
auth.recoverPassword#4ea56e92 code:string = auth.Authorization;
func (*AuthServiceImpl) AuthRequestPasswordRecovery ¶
func (s *AuthServiceImpl) AuthRequestPasswordRecovery(ctx context.Context, request *mtproto.TLAuthRequestPasswordRecovery) (*mtproto.Auth_PasswordRecovery, error)
auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;
func (*AuthServiceImpl) AuthResendCode ¶
func (s *AuthServiceImpl) AuthResendCode(ctx context.Context, request *mtproto.TLAuthResendCode) (*mtproto.Auth_SentCode, error)
auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode;
func (*AuthServiceImpl) AuthResetAuthorizations ¶
func (s *AuthServiceImpl) AuthResetAuthorizations(ctx context.Context, request *mtproto.TLAuthResetAuthorizations) (*mtproto.Bool, error)
auth.resetAuthorizations#9fab0d1a = Bool;
func (*AuthServiceImpl) AuthSendCode ¶
func (s *AuthServiceImpl) AuthSendCode(ctx context.Context, request *mtproto.TLAuthSendCode) (*mtproto.Auth_SentCode, error)
auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode;
func (*AuthServiceImpl) AuthSendCodeLayer51 ¶
func (s *AuthServiceImpl) AuthSendCodeLayer51(ctx context.Context, request *mtproto.TLAuthSendCodeLayer51) (*mtproto.Auth_SentCode, error)
auth.sendCode#ccfd70cf flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string lang_code:string = auth.SentCode;
func (*AuthServiceImpl) AuthSendInvites ¶
func (s *AuthServiceImpl) AuthSendInvites(ctx context.Context, request *mtproto.TLAuthSendInvites) (*mtproto.Bool, error)
auth.sendInvites#771c1d97 phone_numbers:Vector<string> message:string = Bool;
func (*AuthServiceImpl) AuthSignIn ¶
func (s *AuthServiceImpl) AuthSignIn(ctx context.Context, request *mtproto.TLAuthSignIn) (*mtproto.Auth_Authorization, error)
auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization;
func (*AuthServiceImpl) AuthSignUp ¶
func (s *AuthServiceImpl) AuthSignUp(ctx context.Context, request *mtproto.TLAuthSignUp) (*mtproto.Auth_Authorization, error)
Android client auth.signUp#1b067634, handler error if (error.text.contains("PHONE_NUMBER_INVALID")) { needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("InvalidPhoneNumber", R.string.InvalidPhoneNumber)); } else if (error.text.contains("PHONE_CODE_EMPTY") || error.text.contains("PHONE_CODE_INVALID")) { needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("InvalidCode", R.string.InvalidCode)); } else if (error.text.contains("PHONE_CODE_EXPIRED")) { needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("CodeExpired", R.string.CodeExpired)); } else if (error.text.contains("FIRSTNAME_INVALID")) { needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("InvalidFirstName", R.string.InvalidFirstName)); } else if (error.text.contains("LASTNAME_INVALID")) { needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("InvalidLastName", R.string.InvalidLastName)); } else { needShowAlert(LocaleController.getString("AppName", R.string.AppName), error.text); }
auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization;
Source Files ¶
- auth.bindTempAuthKey_handler.go
- auth.cancelCode_handler.go
- auth.checkPassword_handler.go
- auth.checkPhone_handler.go
- auth.dropTempAuthKeys_handler.go
- auth.exportAuthorization_handler.go
- auth.importAuthorization_handler.go
- auth.importBotAuthorization_handler.go
- auth.logOut_handler.go
- auth.recoverPassword_handler.go
- auth.requestPasswordRecovery_handler.go
- auth.resendCode_handler.go
- auth.resetAuthorizations_handler.go
- auth.sendCodeLayer51_handler.go
- auth.sendCode_handler.go
- auth.sendInvites_handler.go
- auth.signIn_handler.go
- auth.signUp_handler.go
- auth_service_impl.go