core

package
v0.96.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationCore

type AuthorizationCore struct {
	logx.Logger
	MD *metadata.RpcMetadata
	// contains filtered or unexported fields
}

func New

func (*AuthorizationCore) AccountChangeAuthorizationSettings added in v0.86.0

func (c *AuthorizationCore) AccountChangeAuthorizationSettings(in *mtproto.TLAccountChangeAuthorizationSettings) (*mtproto.Bool, error)

AccountChangeAuthorizationSettings account.changeAuthorizationSettings#40f48462 flags:# hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;

func (*AuthorizationCore) AccountResetPassword

AccountResetPassword account.resetPassword#9308ce1b = account.ResetPasswordResult;

func (*AuthorizationCore) AccountSendVerifyEmailCode added in v0.96.0

AccountSendVerifyEmailCode account.sendVerifyEmailCode#98e037bb purpose:EmailVerifyPurpose email:string = account.SentEmailCode;

func (*AuthorizationCore) AccountSetAuthorizationTTL added in v0.86.0

func (c *AuthorizationCore) AccountSetAuthorizationTTL(in *mtproto.TLAccountSetAuthorizationTTL) (*mtproto.Bool, error)

AccountSetAuthorizationTTL account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;

func (*AuthorizationCore) AccountVerifyEmail32DA4CF added in v0.96.0

AccountVerifyEmail32DA4CF account.verifyEmail#32da4cf purpose:EmailVerifyPurpose verification:EmailVerification = account.EmailVerified;

func (*AuthorizationCore) AccountVerifyEmailECBA39DB added in v0.96.0

func (c *AuthorizationCore) AccountVerifyEmailECBA39DB(in *mtproto.TLAccountVerifyEmailECBA39DB) (*mtproto.Bool, error)

AccountVerifyEmailECBA39DB account.verifyEmail#ecba39db email:string code:string = Bool;

func (*AuthorizationCore) AuthBindTempAuthKey

func (c *AuthorizationCore) AuthBindTempAuthKey(in *mtproto.TLAuthBindTempAuthKey) (*mtproto.Bool, error)

AuthBindTempAuthKey auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;

func (*AuthorizationCore) AuthCancelCode

func (c *AuthorizationCore) AuthCancelCode(in *mtproto.TLAuthCancelCode) (*mtproto.Bool, error)

AuthCancelCode auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;

func (*AuthorizationCore) AuthCheckPassword

AuthCheckPassword auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization;

func (*AuthorizationCore) AuthCheckRecoveryPassword

func (c *AuthorizationCore) AuthCheckRecoveryPassword(in *mtproto.TLAuthCheckRecoveryPassword) (*mtproto.Bool, error)

AuthCheckRecoveryPassword auth.checkRecoveryPassword#d36bf79 code:string = Bool;

func (*AuthorizationCore) AuthDropTempAuthKeys

func (c *AuthorizationCore) AuthDropTempAuthKeys(in *mtproto.TLAuthDropTempAuthKeys) (*mtproto.Bool, error)

AuthDropTempAuthKeys auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool;

func (*AuthorizationCore) AuthExportAuthorization

AuthExportAuthorization auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization;

func (*AuthorizationCore) AuthImportAuthorization

AuthImportAuthorization auth.importAuthorization#a57a7dad id:long bytes:bytes = auth.Authorization;

func (*AuthorizationCore) AuthImportBotAuthorization

AuthImportBotAuthorization auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;

func (*AuthorizationCore) AuthImportWebTokenAuthorization added in v0.90.1

func (c *AuthorizationCore) AuthImportWebTokenAuthorization(in *mtproto.TLAuthImportWebTokenAuthorization) (*mtproto.Auth_Authorization, error)

AuthImportWebTokenAuthorization auth.importWebTokenAuthorization#2db873a9 api_id:int api_hash:string web_auth_token:string = auth.Authorization;

func (*AuthorizationCore) AuthLogOut added in v0.87.1

AuthLogOut auth.logOut#3e72ba19 = auth.LoggedOut;

func (*AuthorizationCore) AuthRecoverPassword

AuthRecoverPassword auth.recoverPassword#37096c70 flags:# code:string new_settings:flags.0?account.PasswordInputSettings = auth.Authorization;

func (*AuthorizationCore) AuthRequestFirebaseSms added in v0.96.0

func (c *AuthorizationCore) AuthRequestFirebaseSms(in *mtproto.TLAuthRequestFirebaseSms) (*mtproto.Bool, error)

AuthRequestFirebaseSms auth.requestFirebaseSms#89464b50 flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string ios_push_secret:flags.1?string = Bool;

func (*AuthorizationCore) AuthRequestPasswordRecovery

AuthRequestPasswordRecovery auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;

func (*AuthorizationCore) AuthResendCode

AuthResendCode auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode;

func (*AuthorizationCore) AuthResetAuthorizations

func (c *AuthorizationCore) AuthResetAuthorizations(in *mtproto.TLAuthResetAuthorizations) (*mtproto.Bool, error)

AuthResetAuthorizations auth.resetAuthorizations#9fab0d1a = Bool;

func (*AuthorizationCore) AuthResetLoginEmail added in v0.96.0

AuthResetLoginEmail auth.resetLoginEmail#7e960193 phone_number:string phone_code_hash:string = auth.SentCode;

func (*AuthorizationCore) AuthSendCode

AuthSendCode auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode;

func (*AuthorizationCore) AuthSignIn

AuthSignIn auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization;

func (*AuthorizationCore) AuthSignUp

AuthSignUp auth.signUp#80eee427 phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization;

func (*AuthorizationCore) AuthToggleBan

AuthToggleBan auth.toggleBan flags:# phone:string predefined:flags.0?true expires:flags.1?int reason:flags.1?string = PredefinedUser;

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL