Documentation ¶
Index ¶
- type Service
- func (s *Service) AccountChangeAuthorizationSettings(ctx context.Context, request *mtproto.TLAccountChangeAuthorizationSettings) (*mtproto.Bool, error)
- func (s *Service) AccountResetPassword(ctx context.Context, request *mtproto.TLAccountResetPassword) (*mtproto.Account_ResetPasswordResult, error)
- func (s *Service) AccountSetAuthorizationTTL(ctx context.Context, request *mtproto.TLAccountSetAuthorizationTTL) (*mtproto.Bool, error)
- func (s *Service) AuthBindTempAuthKey(ctx context.Context, request *mtproto.TLAuthBindTempAuthKey) (*mtproto.Bool, error)
- func (s *Service) AuthCancelCode(ctx context.Context, request *mtproto.TLAuthCancelCode) (*mtproto.Bool, error)
- func (s *Service) AuthCheckPassword(ctx context.Context, request *mtproto.TLAuthCheckPassword) (*mtproto.Auth_Authorization, error)
- func (s *Service) AuthCheckRecoveryPassword(ctx context.Context, request *mtproto.TLAuthCheckRecoveryPassword) (*mtproto.Bool, error)
- func (s *Service) AuthDropTempAuthKeys(ctx context.Context, request *mtproto.TLAuthDropTempAuthKeys) (*mtproto.Bool, error)
- func (s *Service) AuthExportAuthorization(ctx context.Context, request *mtproto.TLAuthExportAuthorization) (*mtproto.Auth_ExportedAuthorization, error)
- func (s *Service) AuthImportAuthorization(ctx context.Context, request *mtproto.TLAuthImportAuthorization) (*mtproto.Auth_Authorization, error)
- func (s *Service) AuthImportBotAuthorization(ctx context.Context, request *mtproto.TLAuthImportBotAuthorization) (*mtproto.Auth_Authorization, error)
- func (s *Service) AuthLogOut(ctx context.Context, request *mtproto.TLAuthLogOut) (*mtproto.Auth_LoggedOut, error)
- func (s *Service) AuthRecoverPassword(ctx context.Context, request *mtproto.TLAuthRecoverPassword) (*mtproto.Auth_Authorization, error)
- func (s *Service) AuthRequestPasswordRecovery(ctx context.Context, request *mtproto.TLAuthRequestPasswordRecovery) (*mtproto.Auth_PasswordRecovery, error)
- func (s *Service) AuthResendCode(ctx context.Context, request *mtproto.TLAuthResendCode) (*mtproto.Auth_SentCode, error)
- func (s *Service) AuthResetAuthorizations(ctx context.Context, request *mtproto.TLAuthResetAuthorizations) (*mtproto.Bool, error)
- func (s *Service) AuthSendCode(ctx context.Context, request *mtproto.TLAuthSendCode) (*mtproto.Auth_SentCode, error)
- func (s *Service) AuthSignIn(ctx context.Context, request *mtproto.TLAuthSignIn) (*mtproto.Auth_Authorization, error)
- func (s *Service) AuthSignUp(ctx context.Context, request *mtproto.TLAuthSignUp) (*mtproto.Auth_Authorization, error)
- func (s *Service) AuthToggleBan(ctx context.Context, request *mtproto.TLAuthToggleBan) (*mtproto.PredefinedUser, error)
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 ¶
func (s *Service) AccountResetPassword(ctx context.Context, request *mtproto.TLAccountResetPassword) (*mtproto.Account_ResetPasswordResult, error)
AccountResetPassword account.resetPassword#9308ce1b = account.ResetPasswordResult;
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) 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) 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) 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) 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#bcd51581 phone_number:string phone_code_hash:string phone_code:string = 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;