Documentation ¶
Index ¶
- type AccountServiceImpl
- func (s *AccountServiceImpl) AccountChangePhone(ctx context.Context, request *mtproto.TLAccountChangePhone) (*mtproto.User, error)
- func (s *AccountServiceImpl) AccountCheckUsername(ctx context.Context, request *mtproto.TLAccountCheckUsername) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountConfirmPhone(ctx context.Context, request *mtproto.TLAccountConfirmPhone) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountDeleteAccount(ctx context.Context, request *mtproto.TLAccountDeleteAccount) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountGetAccountTTL(ctx context.Context, request *mtproto.TLAccountGetAccountTTL) (*mtproto.AccountDaysTTL, error)
- func (s *AccountServiceImpl) AccountGetAuthorizations(ctx context.Context, request *mtproto.TLAccountGetAuthorizations) (*mtproto.Account_Authorizations, error)
- func (s *AccountServiceImpl) AccountGetNotifySettings(ctx context.Context, request *mtproto.TLAccountGetNotifySettings) (*mtproto.PeerNotifySettings, error)
- func (s *AccountServiceImpl) AccountGetPassword(ctx context.Context, request *mtproto.TLAccountGetPassword) (*mtproto.Account_Password, error)
- func (s *AccountServiceImpl) AccountGetPasswordSettings(ctx context.Context, request *mtproto.TLAccountGetPasswordSettings) (*mtproto.Account_PasswordSettings, error)
- func (s *AccountServiceImpl) AccountGetPrivacy(ctx context.Context, request *mtproto.TLAccountGetPrivacy) (*mtproto.Account_PrivacyRules, error)
- func (s *AccountServiceImpl) AccountGetTmpPassword(ctx context.Context, request *mtproto.TLAccountGetTmpPassword) (*mtproto.Account_TmpPassword, error)
- func (s *AccountServiceImpl) AccountGetWallPapers(ctx context.Context, request *mtproto.TLAccountGetWallPapers) (*mtproto.Vector_WallPaper, error)
- func (s *AccountServiceImpl) AccountRegisterDevice(ctx context.Context, request *mtproto.TLAccountRegisterDevice) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountRegisterDeviceLayer74(ctx context.Context, request *mtproto.TLAccountRegisterDeviceLayer74) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountReportPeer(ctx context.Context, request *mtproto.TLAccountReportPeer) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountResetAuthorization(ctx context.Context, request *mtproto.TLAccountResetAuthorization) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountResetNotifySettings(ctx context.Context, request *mtproto.TLAccountResetNotifySettings) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountSendChangePhoneCode(ctx context.Context, request *mtproto.TLAccountSendChangePhoneCode) (*mtproto.Auth_SentCode, error)
- func (s *AccountServiceImpl) AccountSendConfirmPhoneCode(ctx context.Context, request *mtproto.TLAccountSendConfirmPhoneCode) (*mtproto.Auth_SentCode, error)
- func (s *AccountServiceImpl) AccountSetAccountTTL(ctx context.Context, request *mtproto.TLAccountSetAccountTTL) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountSetPrivacy(ctx context.Context, request *mtproto.TLAccountSetPrivacy) (*mtproto.Account_PrivacyRules, error)
- func (s *AccountServiceImpl) AccountUnregisterDevice(ctx context.Context, request *mtproto.TLAccountUnregisterDevice) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountUnregisterDeviceLayer74(ctx context.Context, request *mtproto.TLAccountUnregisterDeviceLayer74) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountUpdateDeviceLocked(ctx context.Context, request *mtproto.TLAccountUpdateDeviceLocked) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountUpdateNotifySettings(ctx context.Context, request *mtproto.TLAccountUpdateNotifySettings) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountUpdatePasswordSettings(ctx context.Context, request *mtproto.TLAccountUpdatePasswordSettings) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountUpdateProfile(ctx context.Context, request *mtproto.TLAccountUpdateProfile) (*mtproto.User, error)
- func (s *AccountServiceImpl) AccountUpdateStatus(ctx context.Context, request *mtproto.TLAccountUpdateStatus) (*mtproto.Bool, error)
- func (s *AccountServiceImpl) AccountUpdateUsername(ctx context.Context, request *mtproto.TLAccountUpdateUsername) (*mtproto.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountServiceImpl ¶
type AccountServiceImpl struct { }
func (*AccountServiceImpl) AccountChangePhone ¶
func (s *AccountServiceImpl) AccountChangePhone(ctx context.Context, request *mtproto.TLAccountChangePhone) (*mtproto.User, error)
account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;
func (*AccountServiceImpl) AccountCheckUsername ¶
func (s *AccountServiceImpl) AccountCheckUsername(ctx context.Context, request *mtproto.TLAccountCheckUsername) (*mtproto.Bool, error)
account.checkUsername#2714d86c username:string = Bool;
func (*AccountServiceImpl) AccountConfirmPhone ¶
func (s *AccountServiceImpl) AccountConfirmPhone(ctx context.Context, request *mtproto.TLAccountConfirmPhone) (*mtproto.Bool, error)
account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;
func (*AccountServiceImpl) AccountDeleteAccount ¶
func (s *AccountServiceImpl) AccountDeleteAccount(ctx context.Context, request *mtproto.TLAccountDeleteAccount) (*mtproto.Bool, error)
account.deleteAccount#418d4e0b reason:string = Bool;
func (*AccountServiceImpl) AccountGetAccountTTL ¶
func (s *AccountServiceImpl) AccountGetAccountTTL(ctx context.Context, request *mtproto.TLAccountGetAccountTTL) (*mtproto.AccountDaysTTL, error)
account.getAccountTTL#8fc711d = AccountDaysTTL;
func (*AccountServiceImpl) AccountGetAuthorizations ¶
func (s *AccountServiceImpl) AccountGetAuthorizations(ctx context.Context, request *mtproto.TLAccountGetAuthorizations) (*mtproto.Account_Authorizations, error)
account.getAuthorizations#e320c158 = account.Authorizations;
func (*AccountServiceImpl) AccountGetNotifySettings ¶
func (s *AccountServiceImpl) AccountGetNotifySettings(ctx context.Context, request *mtproto.TLAccountGetNotifySettings) (*mtproto.PeerNotifySettings, error)
account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings;
func (*AccountServiceImpl) AccountGetPassword ¶
func (s *AccountServiceImpl) AccountGetPassword(ctx context.Context, request *mtproto.TLAccountGetPassword) (*mtproto.Account_Password, error)
account.getPassword#548a30f5 = account.Password;
func (*AccountServiceImpl) AccountGetPasswordSettings ¶
func (s *AccountServiceImpl) AccountGetPasswordSettings(ctx context.Context, request *mtproto.TLAccountGetPasswordSettings) (*mtproto.Account_PasswordSettings, error)
account.getPasswordSettings#bc8d11bb current_password_hash:bytes = account.PasswordSettings;
func (*AccountServiceImpl) AccountGetPrivacy ¶
func (s *AccountServiceImpl) AccountGetPrivacy(ctx context.Context, request *mtproto.TLAccountGetPrivacy) (*mtproto.Account_PrivacyRules, error)
account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;
func (*AccountServiceImpl) AccountGetTmpPassword ¶
func (s *AccountServiceImpl) AccountGetTmpPassword(ctx context.Context, request *mtproto.TLAccountGetTmpPassword) (*mtproto.Account_TmpPassword, error)
account.getTmpPassword#4a82327e password_hash:bytes period:int = account.TmpPassword;
func (*AccountServiceImpl) AccountGetWallPapers ¶
func (s *AccountServiceImpl) AccountGetWallPapers(ctx context.Context, request *mtproto.TLAccountGetWallPapers) (*mtproto.Vector_WallPaper, error)
account.getWallPapers#c04cfac2 = Vector<WallPaper>;
func (*AccountServiceImpl) AccountRegisterDevice ¶
func (s *AccountServiceImpl) AccountRegisterDevice(ctx context.Context, request *mtproto.TLAccountRegisterDevice) (*mtproto.Bool, error)
{"token_type":10,"token":"{\"endpoint\":\"https://android.googleapis.com/gcm/send/fFBQfzHLq0I:APA91bF28ucFXm7ZF2T7sf87dKAARGXHzdK3HbK0rrhJMmPZr42amq6B-QASi-mLzOzZ5qsynyvtEOSNNYbvadNKI5LCxmYMhQXkhoh_fpTB0GsYLBjwpElaV68OmTUzN-AFDgWuqMIpQH5XYDZoYQopg-yHHdsxcQ\",\"expirationTime\":null,\"keys\":{\"p256dh\":\"BJLqPVxd2KNAmW_izYz4ha5hN4ZEzXnNbk4__FC-xhmaa2vZD3RRtvgPNphH8ZSM9wF4_vSTJZLzQ5Iv0byZxrY\",\"auth\":\"nBC8C_1cvhSTlEEelbk9kw\"}}","app_sandbox":{"constructor":-1132882121,"data2":{}}} account.registerDevice#637ea878 token_type:int token:string = Bool;
func (*AccountServiceImpl) AccountRegisterDeviceLayer74 ¶
func (s *AccountServiceImpl) AccountRegisterDeviceLayer74(ctx context.Context, request *mtproto.TLAccountRegisterDeviceLayer74) (*mtproto.Bool, error)
Layer74 account.registerDevice#1389cc token_type:int token:string app_sandbox:Bool other_uids:Vector<int> = Bool;
func (*AccountServiceImpl) AccountReportPeer ¶
func (s *AccountServiceImpl) AccountReportPeer(ctx context.Context, request *mtproto.TLAccountReportPeer) (*mtproto.Bool, error)
Android client source code: if (ChatObject.isChannel(currentChat) && !currentChat.creator && (!currentChat.megagroup || currentChat.username != null && currentChat.username.length() > 0)) { headerItem.addSubItem(report, LocaleController.getString("ReportChat", R.string.ReportChat)); }
account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool;
func (*AccountServiceImpl) AccountResetAuthorization ¶
func (s *AccountServiceImpl) AccountResetAuthorization(ctx context.Context, request *mtproto.TLAccountResetAuthorization) (*mtproto.Bool, error)
account.resetAuthorization#df77f3bc hash:long = Bool;
func (*AccountServiceImpl) AccountResetNotifySettings ¶
func (s *AccountServiceImpl) AccountResetNotifySettings(ctx context.Context, request *mtproto.TLAccountResetNotifySettings) (*mtproto.Bool, error)
account.resetNotifySettings#db7e1747 = Bool;
func (*AccountServiceImpl) AccountSendChangePhoneCode ¶
func (s *AccountServiceImpl) AccountSendChangePhoneCode(ctx context.Context, request *mtproto.TLAccountSendChangePhoneCode) (*mtproto.Auth_SentCode, error)
account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode;
func (*AccountServiceImpl) AccountSendConfirmPhoneCode ¶
func (s *AccountServiceImpl) AccountSendConfirmPhoneCode(ctx context.Context, request *mtproto.TLAccountSendConfirmPhoneCode) (*mtproto.Auth_SentCode, error)
account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode;
func (*AccountServiceImpl) AccountSetAccountTTL ¶
func (s *AccountServiceImpl) AccountSetAccountTTL(ctx context.Context, request *mtproto.TLAccountSetAccountTTL) (*mtproto.Bool, error)
account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;
func (*AccountServiceImpl) AccountSetPrivacy ¶
func (s *AccountServiceImpl) AccountSetPrivacy(ctx context.Context, request *mtproto.TLAccountSetPrivacy) (*mtproto.Account_PrivacyRules, error)
account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules;
func (*AccountServiceImpl) AccountUnregisterDevice ¶
func (s *AccountServiceImpl) AccountUnregisterDevice(ctx context.Context, request *mtproto.TLAccountUnregisterDevice) (*mtproto.Bool, error)
account.unregisterDevice#65c55b40 token_type:int token:string = Bool;
func (*AccountServiceImpl) AccountUnregisterDeviceLayer74 ¶
func (s *AccountServiceImpl) AccountUnregisterDeviceLayer74(ctx context.Context, request *mtproto.TLAccountUnregisterDeviceLayer74) (*mtproto.Bool, error)
Layer74 account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector<int> = Bool;
func (*AccountServiceImpl) AccountUpdateDeviceLocked ¶
func (s *AccountServiceImpl) AccountUpdateDeviceLocked(ctx context.Context, request *mtproto.TLAccountUpdateDeviceLocked) (*mtproto.Bool, error)
account.updateDeviceLocked#38df3532 period:int = Bool;
func (*AccountServiceImpl) AccountUpdateNotifySettings ¶
func (s *AccountServiceImpl) AccountUpdateNotifySettings(ctx context.Context, request *mtproto.TLAccountUpdateNotifySettings) (*mtproto.Bool, error)
account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool;
func (*AccountServiceImpl) AccountUpdatePasswordSettings ¶
func (s *AccountServiceImpl) AccountUpdatePasswordSettings(ctx context.Context, request *mtproto.TLAccountUpdatePasswordSettings) (*mtproto.Bool, error)
account.updatePasswordSettings#fa7c4b86 current_password_hash:bytes new_settings:account.PasswordInputSettings = Bool;
func (*AccountServiceImpl) AccountUpdateProfile ¶
func (s *AccountServiceImpl) AccountUpdateProfile(ctx context.Context, request *mtproto.TLAccountUpdateProfile) (*mtproto.User, error)
account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;
func (*AccountServiceImpl) AccountUpdateStatus ¶
func (s *AccountServiceImpl) AccountUpdateStatus(ctx context.Context, request *mtproto.TLAccountUpdateStatus) (*mtproto.Bool, error)
account.updateStatus#6628562c offline:Bool = Bool;
func (*AccountServiceImpl) AccountUpdateUsername ¶
func (s *AccountServiceImpl) AccountUpdateUsername(ctx context.Context, request *mtproto.TLAccountUpdateUsername) (*mtproto.User, error)
account.updateUsername#3e0bdd7c username:string = User;
Source Files ¶
- account.changePhone_handler.go
- account.checkUsername_handler.go
- account.confirmPhone_handler.go
- account.deleteAccount_handler.go
- account.getAccountTTL_handler.go
- account.getAuthorizations_handler.go
- account.getNotifySettings_handler.go
- account.getPasswordSettings_handler.go
- account.getPassword_handler.go
- account.getPrivacy_handler.go
- account.getTmpPassword_handler.go
- account.getWallPapers_handler.go
- account.registerDeviceLayer74_handler.go
- account.registerDevice_handler.go
- account.reportPeer_handler.go
- account.resetAuthorization_handler.go
- account.resetNotifySettings_handler.go
- account.sendChangePhoneCode_handler.go
- account.sendConfirmPhoneCode_handler.go
- account.setAccountTTL_handler.go
- account.setPrivacy_handler.go
- account.unregisterDeviceLayer74_handler.go
- account.unregisterDevice_handler.go
- account.updateDeviceLocked_handler.go
- account.updateNotifySettings_handler.go
- account.updatePasswordSettings_handler.go
- account.updateProfile_handler.go
- account.updateStatus_handler.go
- account.updateUsername_handler.go
- account_service_impl.go