Documentation ¶
Index ¶
- type AccountCore
- func (c *AccountCore) AccountChangePhone(in *mtproto.TLAccountChangePhone) (*mtproto.User, error)
- func (c *AccountCore) AccountConfirmPhone(in *mtproto.TLAccountConfirmPhone) (*mtproto.Bool, error)
- func (c *AccountCore) AccountDeleteAccount(in *mtproto.TLAccountDeleteAccount) (*mtproto.Bool, error)
- func (c *AccountCore) AccountGetAccountTTL(in *mtproto.TLAccountGetAccountTTL) (*mtproto.AccountDaysTTL, error)
- func (c *AccountCore) AccountGetGlobalPrivacySettings(in *mtproto.TLAccountGetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)
- func (c *AccountCore) AccountGetPrivacy(in *mtproto.TLAccountGetPrivacy) (*mtproto.Account_PrivacyRules, error)
- func (c *AccountCore) AccountResetAuthorization(in *mtproto.TLAccountResetAuthorization) (*mtproto.Bool, error)
- func (c *AccountCore) AccountSendChangePhoneCode(in *mtproto.TLAccountSendChangePhoneCode) (*mtproto.Auth_SentCode, error)
- func (c *AccountCore) AccountSendConfirmPhoneCode(in *mtproto.TLAccountSendConfirmPhoneCode) (*mtproto.Auth_SentCode, error)
- func (c *AccountCore) AccountSetAccountTTL(in *mtproto.TLAccountSetAccountTTL) (*mtproto.Bool, error)
- func (c *AccountCore) AccountSetGlobalPrivacySettings(in *mtproto.TLAccountSetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)
- func (c *AccountCore) AccountSetPrivacy(in *mtproto.TLAccountSetPrivacy) (*mtproto.Account_PrivacyRules, error)
- func (c *AccountCore) AccountUpdateProfile(in *mtproto.TLAccountUpdateProfile) (*mtproto.User, error)
- func (c *AccountCore) AccountUpdateStatus(in *mtproto.TLAccountUpdateStatus) (*mtproto.Bool, error)
- func (c *AccountCore) AccountUpdateVerified(in *mtproto.TLAccountUpdateVerified) (*mtproto.User, error)
- func (c *AccountCore) MessagesGetDefaultHistoryTTL(in *mtproto.TLMessagesGetDefaultHistoryTTL) (*mtproto.DefaultHistoryTTL, error)
- func (c *AccountCore) MessagesSetDefaultHistoryTTL(in *mtproto.TLMessagesSetDefaultHistoryTTL) (*mtproto.Bool, error)
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 ¶
func (c *AccountCore) AccountGetPrivacy(in *mtproto.TLAccountGetPrivacy) (*mtproto.Account_PrivacyRules, error)
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 ¶
func (c *AccountCore) AccountSetPrivacy(in *mtproto.TLAccountSetPrivacy) (*mtproto.Account_PrivacyRules, error)
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;
Source Files ¶
- account.changePhone_handler.go
- account.confirmPhone_handler.go
- account.deleteAccount_handler.go
- account.getAccountTTL_handler.go
- account.getGlobalPrivacySettings_handler.go
- account.getPrivacy_handler.go
- account.resetAuthorization_handler.go
- account.sendChangePhoneCode_handler.go
- account.sendConfirmPhoneCode_handler.go
- account.setAccountTTL_handler.go
- account.setGlobalPrivacySettings_handler.go
- account.setPrivacy_handler.go
- account.updateProfile_handler.go
- account.updateStatus_handler.go
- account.updateVerified_handler.go
- core.go
- messages.getDefaultHistoryTTL_handler.go
- messages.setDefaultHistoryTTL_handler.go