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) AccountChangePhone

func (s *Service) AccountChangePhone(ctx context.Context, request *mtproto.TLAccountChangePhone) (*mtproto.User, error)

AccountChangePhone account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;

func (*Service) AccountConfirmPhone

func (s *Service) AccountConfirmPhone(ctx context.Context, request *mtproto.TLAccountConfirmPhone) (*mtproto.Bool, error)

AccountConfirmPhone account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;

func (*Service) AccountDeleteAccount

func (s *Service) AccountDeleteAccount(ctx context.Context, request *mtproto.TLAccountDeleteAccount) (*mtproto.Bool, error)

AccountDeleteAccount account.deleteAccount#a2c0cf74 flags:# reason:string password:flags.0?InputCheckPasswordSRP = Bool;

func (*Service) AccountGetAccountTTL

func (s *Service) AccountGetAccountTTL(ctx context.Context, request *mtproto.TLAccountGetAccountTTL) (*mtproto.AccountDaysTTL, error)

AccountGetAccountTTL account.getAccountTTL#8fc711d = AccountDaysTTL;

func (*Service) AccountGetGlobalPrivacySettings

func (s *Service) AccountGetGlobalPrivacySettings(ctx context.Context, request *mtproto.TLAccountGetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)

AccountGetGlobalPrivacySettings account.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings;

func (*Service) AccountGetPrivacy

func (s *Service) AccountGetPrivacy(ctx context.Context, request *mtproto.TLAccountGetPrivacy) (*mtproto.Account_PrivacyRules, error)

AccountGetPrivacy account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;

func (*Service) AccountResetAuthorization

func (s *Service) AccountResetAuthorization(ctx context.Context, request *mtproto.TLAccountResetAuthorization) (*mtproto.Bool, error)

AccountResetAuthorization account.resetAuthorization#df77f3bc hash:long = Bool;

func (*Service) AccountSendChangePhoneCode

func (s *Service) AccountSendChangePhoneCode(ctx context.Context, request *mtproto.TLAccountSendChangePhoneCode) (*mtproto.Auth_SentCode, error)

AccountSendChangePhoneCode account.sendChangePhoneCode#82574ae5 phone_number:string settings:CodeSettings = auth.SentCode;

func (*Service) AccountSendConfirmPhoneCode

func (s *Service) AccountSendConfirmPhoneCode(ctx context.Context, request *mtproto.TLAccountSendConfirmPhoneCode) (*mtproto.Auth_SentCode, error)

AccountSendConfirmPhoneCode account.sendConfirmPhoneCode#1b3faa88 hash:string settings:CodeSettings = auth.SentCode;

func (*Service) AccountSetAccountTTL

func (s *Service) AccountSetAccountTTL(ctx context.Context, request *mtproto.TLAccountSetAccountTTL) (*mtproto.Bool, error)

AccountSetAccountTTL account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;

func (*Service) AccountSetGlobalPrivacySettings

func (s *Service) AccountSetGlobalPrivacySettings(ctx context.Context, request *mtproto.TLAccountSetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)

AccountSetGlobalPrivacySettings account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;

func (*Service) AccountSetPrivacy

func (s *Service) AccountSetPrivacy(ctx context.Context, request *mtproto.TLAccountSetPrivacy) (*mtproto.Account_PrivacyRules, error)

AccountSetPrivacy account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules;

func (*Service) AccountUpdateProfile

func (s *Service) AccountUpdateProfile(ctx context.Context, request *mtproto.TLAccountUpdateProfile) (*mtproto.User, error)

AccountUpdateProfile account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;

func (*Service) AccountUpdateStatus

func (s *Service) AccountUpdateStatus(ctx context.Context, request *mtproto.TLAccountUpdateStatus) (*mtproto.Bool, error)

AccountUpdateStatus account.updateStatus#6628562c offline:Bool = Bool;

func (*Service) AccountUpdateVerified

func (s *Service) AccountUpdateVerified(ctx context.Context, request *mtproto.TLAccountUpdateVerified) (*mtproto.User, error)

AccountUpdateVerified account.updateVerified flags:# id:long verified:flags.0?true = User;

func (*Service) GetServiceContext added in v0.96.0

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

func (*Service) MessagesGetDefaultHistoryTTL added in v0.96.0

func (s *Service) MessagesGetDefaultHistoryTTL(ctx context.Context, request *mtproto.TLMessagesGetDefaultHistoryTTL) (*mtproto.DefaultHistoryTTL, error)

MessagesGetDefaultHistoryTTL messages.getDefaultHistoryTTL#658b7188 = DefaultHistoryTTL;

func (*Service) MessagesSetDefaultHistoryTTL added in v0.96.0

func (s *Service) MessagesSetDefaultHistoryTTL(ctx context.Context, request *mtproto.TLMessagesSetDefaultHistoryTTL) (*mtproto.Bool, error)

MessagesSetDefaultHistoryTTL messages.setDefaultHistoryTTL#9eb51445 period:int = Bool;

Jump to

Keyboard shortcuts

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