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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCore

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

func New

func New(ctx context.Context, svcCtx *svc.ServiceContext) *AccountCore

func (*AccountCore) AccountChangePhone

func (c *AccountCore) AccountChangePhone(in *mtproto.TLAccountChangePhone) (*mtproto.User, error)

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

func (*AccountCore) AccountConfirmPhone

func (c *AccountCore) AccountConfirmPhone(in *mtproto.TLAccountConfirmPhone) (*mtproto.Bool, error)

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

func (*AccountCore) AccountDeleteAccount

func (c *AccountCore) AccountDeleteAccount(in *mtproto.TLAccountDeleteAccount) (*mtproto.Bool, error)

AccountDeleteAccount account.deleteAccount#418d4e0b reason:string = Bool;

func (*AccountCore) AccountGetAccountTTL

func (c *AccountCore) AccountGetAccountTTL(in *mtproto.TLAccountGetAccountTTL) (*mtproto.AccountDaysTTL, error)

AccountGetAccountTTL account.getAccountTTL#8fc711d = AccountDaysTTL;

func (*AccountCore) AccountGetGlobalPrivacySettings

func (c *AccountCore) AccountGetGlobalPrivacySettings(in *mtproto.TLAccountGetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)

AccountGetGlobalPrivacySettings account.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings;

func (*AccountCore) AccountGetPrivacy

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

func (*AccountCore) AccountResetAuthorization

func (c *AccountCore) AccountResetAuthorization(in *mtproto.TLAccountResetAuthorization) (*mtproto.Bool, error)

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

func (*AccountCore) AccountSendChangePhoneCode

func (c *AccountCore) AccountSendChangePhoneCode(in *mtproto.TLAccountSendChangePhoneCode) (*mtproto.Auth_SentCode, error)

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

func (*AccountCore) AccountSendConfirmPhoneCode

func (c *AccountCore) AccountSendConfirmPhoneCode(in *mtproto.TLAccountSendConfirmPhoneCode) (*mtproto.Auth_SentCode, error)

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

func (*AccountCore) AccountSetAccountTTL

func (c *AccountCore) AccountSetAccountTTL(in *mtproto.TLAccountSetAccountTTL) (*mtproto.Bool, error)

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

func (*AccountCore) AccountSetGlobalPrivacySettings

func (c *AccountCore) AccountSetGlobalPrivacySettings(in *mtproto.TLAccountSetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)

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

func (*AccountCore) AccountSetPrivacy

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

func (*AccountCore) AccountUpdateProfile

func (c *AccountCore) AccountUpdateProfile(in *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 (*AccountCore) AccountUpdateStatus

func (c *AccountCore) AccountUpdateStatus(in *mtproto.TLAccountUpdateStatus) (*mtproto.Bool, error)

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

func (*AccountCore) AccountUpdateVerified

func (c *AccountCore) AccountUpdateVerified(in *mtproto.TLAccountUpdateVerified) (*mtproto.User, error)

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

func (*AccountCore) MessagesGetDefaultHistoryTTL added in v0.96.0

func (c *AccountCore) MessagesGetDefaultHistoryTTL(in *mtproto.TLMessagesGetDefaultHistoryTTL) (*mtproto.DefaultHistoryTTL, error)

MessagesGetDefaultHistoryTTL messages.getDefaultHistoryTTL#658b7188 = DefaultHistoryTTL;

func (*AccountCore) MessagesSetDefaultHistoryTTL added in v0.96.0

func (c *AccountCore) MessagesSetDefaultHistoryTTL(in *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