service

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(ctx *svc.ServiceContext) *Service

func (*Service) AccountChangeAuthorizationSettings added in v0.86.0

func (s *Service) AccountChangeAuthorizationSettings(ctx context.Context, request *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 (*Service) AccountResetPassword

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

func (*Service) AccountSendVerifyEmailCode added in v0.96.0

func (s *Service) AccountSendVerifyEmailCode(ctx context.Context, request *mtproto.TLAccountSendVerifyEmailCode) (*mtproto.Account_SentEmailCode, error)

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

func (*Service) AccountSetAuthorizationTTL added in v0.86.0

func (s *Service) AccountSetAuthorizationTTL(ctx context.Context, request *mtproto.TLAccountSetAuthorizationTTL) (*mtproto.Bool, error)

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

func (*Service) AccountVerifyEmail32DA4CF added in v0.96.0

func (s *Service) AccountVerifyEmail32DA4CF(ctx context.Context, request *mtproto.TLAccountVerifyEmail32DA4CF) (*mtproto.Account_EmailVerified, error)

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

func (*Service) AccountVerifyEmailECBA39DB added in v0.96.0

func (s *Service) AccountVerifyEmailECBA39DB(ctx context.Context, request *mtproto.TLAccountVerifyEmailECBA39DB) (*mtproto.Bool, error)

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

func (*Service) AuthBindTempAuthKey

func (s *Service) AuthBindTempAuthKey(ctx context.Context, request *mtproto.TLAuthBindTempAuthKey) (*mtproto.Bool, error)

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

func (*Service) AuthCancelCode

func (s *Service) AuthCancelCode(ctx context.Context, request *mtproto.TLAuthCancelCode) (*mtproto.Bool, error)

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

func (*Service) AuthCheckPassword

func (s *Service) AuthCheckPassword(ctx context.Context, request *mtproto.TLAuthCheckPassword) (*mtproto.Auth_Authorization, error)

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

func (*Service) AuthCheckRecoveryPassword

func (s *Service) AuthCheckRecoveryPassword(ctx context.Context, request *mtproto.TLAuthCheckRecoveryPassword) (*mtproto.Bool, error)

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

func (*Service) AuthDropTempAuthKeys

func (s *Service) AuthDropTempAuthKeys(ctx context.Context, request *mtproto.TLAuthDropTempAuthKeys) (*mtproto.Bool, error)

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

func (*Service) AuthExportAuthorization

func (s *Service) AuthExportAuthorization(ctx context.Context, request *mtproto.TLAuthExportAuthorization) (*mtproto.Auth_ExportedAuthorization, error)

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

func (*Service) AuthImportAuthorization

func (s *Service) AuthImportAuthorization(ctx context.Context, request *mtproto.TLAuthImportAuthorization) (*mtproto.Auth_Authorization, error)

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

func (*Service) AuthImportBotAuthorization

func (s *Service) AuthImportBotAuthorization(ctx context.Context, request *mtproto.TLAuthImportBotAuthorization) (*mtproto.Auth_Authorization, error)

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

func (*Service) AuthImportWebTokenAuthorization added in v0.90.1

func (s *Service) AuthImportWebTokenAuthorization(ctx context.Context, request *mtproto.TLAuthImportWebTokenAuthorization) (*mtproto.Auth_Authorization, error)

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

func (*Service) AuthLogOut added in v0.87.1

func (s *Service) AuthLogOut(ctx context.Context, request *mtproto.TLAuthLogOut) (*mtproto.Auth_LoggedOut, error)

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

func (*Service) AuthRecoverPassword

func (s *Service) AuthRecoverPassword(ctx context.Context, request *mtproto.TLAuthRecoverPassword) (*mtproto.Auth_Authorization, error)

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

func (*Service) AuthRequestFirebaseSms added in v0.96.0

func (s *Service) AuthRequestFirebaseSms(ctx context.Context, request *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 (*Service) AuthRequestPasswordRecovery

func (s *Service) AuthRequestPasswordRecovery(ctx context.Context, request *mtproto.TLAuthRequestPasswordRecovery) (*mtproto.Auth_PasswordRecovery, error)

AuthRequestPasswordRecovery auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;

func (*Service) AuthResendCode

func (s *Service) AuthResendCode(ctx context.Context, request *mtproto.TLAuthResendCode) (*mtproto.Auth_SentCode, error)

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

func (*Service) AuthResetAuthorizations

func (s *Service) AuthResetAuthorizations(ctx context.Context, request *mtproto.TLAuthResetAuthorizations) (*mtproto.Bool, error)

AuthResetAuthorizations auth.resetAuthorizations#9fab0d1a = Bool;

func (*Service) AuthResetLoginEmail added in v0.96.0

func (s *Service) AuthResetLoginEmail(ctx context.Context, request *mtproto.TLAuthResetLoginEmail) (*mtproto.Auth_SentCode, error)

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

func (*Service) AuthSendCode

func (s *Service) AuthSendCode(ctx context.Context, request *mtproto.TLAuthSendCode) (*mtproto.Auth_SentCode, error)

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

func (*Service) AuthSignIn

func (s *Service) AuthSignIn(ctx context.Context, request *mtproto.TLAuthSignIn) (*mtproto.Auth_Authorization, error)

AuthSignIn auth.signIn#8d52a951 flags:# phone_number:string phone_code_hash:string phone_code:flags.0?string email_verification:flags.1?EmailVerification = auth.Authorization;

func (*Service) AuthSignUp

func (s *Service) AuthSignUp(ctx context.Context, request *mtproto.TLAuthSignUp) (*mtproto.Auth_Authorization, error)

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

func (*Service) AuthToggleBan

func (s *Service) AuthToggleBan(ctx context.Context, request *mtproto.TLAuthToggleBan) (*mtproto.PredefinedUser, error)

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

func (*Service) GetServiceContext added in v0.96.0

func (s *Service) GetServiceContext() *svc.ServiceContext

Jump to

Keyboard shortcuts

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