core

package
v0.87.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 23 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) 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) 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) 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) 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) 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