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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserCore

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

func New

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

func (*UserCore) UserAddContact

func (c *UserCore) UserAddContact(in *user.TLUserAddContact) (*mtproto.Bool, error)

UserAddContact user.addContact user_id:long add_phone_privacy_exception:Bool id:long first_name:string last_name:string phone:string = Bool;

func (*UserCore) UserAddPeerSettings

func (c *UserCore) UserAddPeerSettings(in *user.TLUserAddPeerSettings) (*mtproto.Bool, error)

UserAddPeerSettings user.addPeerSettings user_id:int peer_type:int peer_id:int settings:PeerSettings = Bool;

func (*UserCore) UserBlockPeer

func (c *UserCore) UserBlockPeer(in *user.TLUserBlockPeer) (*mtproto.Bool, error)

UserBlockPeer user.blockPeer user_id:long peer_type:int peer_id:long = Bool;

func (*UserCore) UserBlockedByUser

func (c *UserCore) UserBlockedByUser(in *user.TLUserBlockedByUser) (*mtproto.Bool, error)

UserBlockedByUser user.blockedByUser userId:long peer_user_id:long = Bool;

func (*UserCore) UserChangePhone

func (c *UserCore) UserChangePhone(in *user.TLUserChangePhone) (*mtproto.Bool, error)

UserChangePhone user.changePhone user_id:int phone:string = Bool;

func (*UserCore) UserCheckBlockUserList

func (c *UserCore) UserCheckBlockUserList(in *user.TLUserCheckBlockUserList) (*user.Vector_Long, error)

UserCheckBlockUserList user.checkBlockUserList user_id:long id:Vector<long> = Vector<long>;

func (*UserCore) UserCheckBots added in v0.96.0

func (c *UserCore) UserCheckBots(in *user.TLUserCheckBots) (*user.Vector_Long, error)

UserCheckBots user.checkBots id:Vector<long> = Vector<long>;

func (*UserCore) UserCheckContact

func (c *UserCore) UserCheckContact(in *user.TLUserCheckContact) (*mtproto.Bool, error)

UserCheckContact user.checkContact user_id:long id:long = Bool;

func (*UserCore) UserCheckPrivacy

func (c *UserCore) UserCheckPrivacy(in *user.TLUserCheckPrivacy) (*mtproto.Bool, error)

UserCheckPrivacy user.checkPrivacy flags:# user_id:int key_type:int peer_id:int is_contact:flags.0?true = Bool;

func (*UserCore) UserCreateNewPredefinedUser

func (c *UserCore) UserCreateNewPredefinedUser(in *user.TLUserCreateNewPredefinedUser) (*mtproto.PredefinedUser, error)

UserCreateNewPredefinedUser user.createNewPredefinedUser flags:# phone:string first_name:string last_name:flags.0?string username:string code:string verified:flags.1?true = PredefinedUser;

func (*UserCore) UserCreateNewTestUser added in v0.96.0

func (c *UserCore) UserCreateNewTestUser(in *user.TLUserCreateNewTestUser) (*mtproto.ImmutableUser, error)

UserCreateNewTestUser user.createNewTestUser secret_key_id:long min_id:long max_id:long = ImmutableUser;

func (*UserCore) UserCreateNewUser

func (c *UserCore) UserCreateNewUser(in *user.TLUserCreateNewUser) (*mtproto.ImmutableUser, error)

UserCreateNewUser user.createNewUser secret_key_id:long phone:string country_code:string first_name:string last_name:string = ImmutableUser;

func (*UserCore) UserDeleteContact

func (c *UserCore) UserDeleteContact(in *user.TLUserDeleteContact) (*mtproto.Bool, error)

UserDeleteContact user.deleteContact user_id:long id:long = Bool;

func (*UserCore) UserDeleteImportersByPhone added in v0.90.1

func (c *UserCore) UserDeleteImportersByPhone(in *user.TLUserDeleteImportersByPhone) (*mtproto.Bool, error)

UserDeleteImportersByPhone user.deleteImportersByPhone phone:string = Bool;

func (*UserCore) UserDeletePeerSettings

func (c *UserCore) UserDeletePeerSettings(in *user.TLUserDeletePeerSettings) (*mtproto.Bool, error)

UserDeletePeerSettings user.deletePeerSettings user_id:int peer_type:int peer_id:int = Bool;

func (*UserCore) UserDeleteProfilePhotos

func (c *UserCore) UserDeleteProfilePhotos(in *user.TLUserDeleteProfilePhotos) (*mtproto.Int64, error)

UserDeleteProfilePhotos user.deleteProfilePhotos user_id:long id:Vector<long> = Int64;

func (*UserCore) UserDeleteUser added in v0.90.1

func (c *UserCore) UserDeleteUser(in *user.TLUserDeleteUser) (*mtproto.Bool, error)

UserDeleteUser user.deleteUser user_id:long reason:string = Bool;

func (*UserCore) UserGetAccountDaysTTL

func (c *UserCore) UserGetAccountDaysTTL(in *user.TLUserGetAccountDaysTTL) (*mtproto.AccountDaysTTL, error)

UserGetAccountDaysTTL user.getAccountDaysTTL user_id:int = AccountDaysTTL;

func (*UserCore) UserGetAllNotifySettings

func (c *UserCore) UserGetAllNotifySettings(in *user.TLUserGetAllNotifySettings) (*user.Vector_PeerPeerNotifySettings, error)

UserGetAllNotifySettings user.getAllNotifySettings user_id:int = Vector<PeerNotifySettings>;

func (*UserCore) UserGetAllPredefinedUser

func (c *UserCore) UserGetAllPredefinedUser(in *user.TLUserGetAllPredefinedUser) (*user.Vector_PredefinedUser, error)

UserGetAllPredefinedUser user.getAllPredefinedUser = Vector<PredefinedUser>;

func (*UserCore) UserGetBlockedList

func (c *UserCore) UserGetBlockedList(in *user.TLUserGetBlockedList) (*user.Vector_PeerBlocked, error)

UserGetBlockedList user.getBlockedList user_id:long offset:int limit:int = Vector<PeerBlocked>;

func (*UserCore) UserGetBotInfo

func (c *UserCore) UserGetBotInfo(in *user.TLUserGetBotInfo) (*mtproto.BotInfo, error)

UserGetBotInfo user.getBotInfo bot_id:long = BotInfo;

func (*UserCore) UserGetContact

func (c *UserCore) UserGetContact(in *user.TLUserGetContact) (*mtproto.ContactData, error)

UserGetContact user.getContact user_id:long id:long = ContactData;

func (*UserCore) UserGetContactIdList

func (c *UserCore) UserGetContactIdList(in *user.TLUserGetContactIdList) (*user.Vector_Long, error)

UserGetContactIdList user.getContactIdList user_id:long = Vector<long>;

func (*UserCore) UserGetContactList

func (c *UserCore) UserGetContactList(in *user.TLUserGetContactList) (*user.Vector_ContactData, error)

UserGetContactList user.getContactList user_id:long = Vector<ContactData>;

func (*UserCore) UserGetContactSignUpNotification

func (c *UserCore) UserGetContactSignUpNotification(in *user.TLUserGetContactSignUpNotification) (*mtproto.Bool, error)

UserGetContactSignUpNotification user.getContactSignUpNotification user_id:long = Bool;

func (*UserCore) UserGetContentSettings

func (c *UserCore) UserGetContentSettings(in *user.TLUserGetContentSettings) (*mtproto.Account_ContentSettings, error)

UserGetContentSettings user.getContentSettings user_id:long = account.ContentSettings;

func (*UserCore) UserGetCountryCode

func (c *UserCore) UserGetCountryCode(in *user.TLUserGetCountryCode) (*mtproto.String, error)

UserGetCountryCode user.getCountryCode user_id:long = String;

func (*UserCore) UserGetFullUser

func (c *UserCore) UserGetFullUser(in *user.TLUserGetFullUser) (*mtproto.Users_UserFull, error)

UserGetFullUser user.getFullUser self_user_id:long id:long = users.UserFull;

func (*UserCore) UserGetGlobalPrivacySettings

func (c *UserCore) UserGetGlobalPrivacySettings(in *user.TLUserGetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)

UserGetGlobalPrivacySettings user.getGlobalPrivacySettings user_id:int = GlobalPrivacySettings;

func (*UserCore) UserGetImmutableUser

func (c *UserCore) UserGetImmutableUser(in *user.TLUserGetImmutableUser) (*mtproto.ImmutableUser, error)

UserGetImmutableUser user.getImmutableUser flags:# id:long privacy:flags.1?true contacts:Vector<long> = ImmutableUser;

func (*UserCore) UserGetImmutableUserByPhone

func (c *UserCore) UserGetImmutableUserByPhone(in *user.TLUserGetImmutableUserByPhone) (*mtproto.ImmutableUser, error)

UserGetImmutableUserByPhone user.getImmutableUserByPhone phone:string = ImmutableUser;

func (*UserCore) UserGetImmutableUserByToken

func (c *UserCore) UserGetImmutableUserByToken(in *user.TLUserGetImmutableUserByToken) (*mtproto.ImmutableUser, error)

UserGetImmutableUserByToken user.getImmutableUserByToken token:string = ImmutableUser;

func (*UserCore) UserGetImmutableUserV2 added in v0.90.4

func (c *UserCore) UserGetImmutableUserV2(in *user.TLUserGetImmutableUserV2) (*mtproto.ImmutableUser, error)

UserGetImmutableUserV2 user.getImmutableUserV2 flags:# id:long privacy:flags.1?true contacts:Vector<long> = ImmutableUser;

func (*UserCore) UserGetImportersByPhone added in v0.90.1

func (c *UserCore) UserGetImportersByPhone(in *user.TLUserGetImportersByPhone) (*user.Vector_InputContact, error)

UserGetImportersByPhone user.getImportersByPhone phone:string = Vector<InputContact>;

func (*UserCore) UserGetLastSeen

func (c *UserCore) UserGetLastSeen(in *user.TLUserGetLastSeen) (*user.LastSeenData, error)

UserGetLastSeen user.getLastSeen id:long = LastSeenData;

func (*UserCore) UserGetLastSeens

func (c *UserCore) UserGetLastSeens(in *user.TLUserGetLastSeens) (*user.Vector_LastSeenData, error)

UserGetLastSeens user.getLastSeens id:Vector<long> = Vector<LastSeenData>;

func (*UserCore) UserGetMutableUsers

func (c *UserCore) UserGetMutableUsers(in *user.TLUserGetMutableUsers) (*user.Vector_ImmutableUser, error)

UserGetMutableUsers user.getMutableUsers id:Vector<int> = Vector<ImmutableUser>;

func (*UserCore) UserGetMutableUsersV2 added in v0.90.4

func (c *UserCore) UserGetMutableUsersV2(in *user.TLUserGetMutableUsersV2) (*mtproto.MutableUsers, error)

UserGetMutableUsersV2 user.getImmutableUserV2 flags:# id:long privacy:flags.0?true contacts:flags.1?Vector<long> reverse_contacts:flags.2?Vector<long> = ImmutableUser;

func (*UserCore) UserGetNotifySettings

func (c *UserCore) UserGetNotifySettings(in *user.TLUserGetNotifySettings) (*mtproto.PeerNotifySettings, error)

UserGetNotifySettings user.getNotifySettings user_id:int peer_type:int peer_id:int = PeerNotifySettings;

func (*UserCore) UserGetNotifySettingsList added in v0.87.3

func (c *UserCore) UserGetNotifySettingsList(in *user.TLUserGetNotifySettingsList) (*user.Vector_PeerPeerNotifySettings, error)

UserGetNotifySettingsList user.getNotifySettingsList user_id:long peers:Vector<PeerUtil> = Vector<PeerNotifySettings>;

func (*UserCore) UserGetPeerSettings

func (c *UserCore) UserGetPeerSettings(in *user.TLUserGetPeerSettings) (*mtproto.PeerSettings, error)

UserGetPeerSettings user.getPeerSettings user_id:int peer_type:int peer_id:int = PeerSettings;

func (*UserCore) UserGetPredefinedUser

func (c *UserCore) UserGetPredefinedUser(in *user.TLUserGetPredefinedUser) (*mtproto.PredefinedUser, error)

UserGetPredefinedUser user.getPredefinedUser phone:string = PredefinedUser;

func (*UserCore) UserGetPrivacy

func (c *UserCore) UserGetPrivacy(in *user.TLUserGetPrivacy) (*user.Vector_PrivacyRule, error)

UserGetPrivacy user.getPrivacy user_id:int key_type:int = Vector<PrivacyRule>;

func (*UserCore) UserGetProfilePhotos

func (c *UserCore) UserGetProfilePhotos(in *user.TLUserGetProfilePhotos) (*user.Vector_Long, error)

UserGetProfilePhotos user.getProfilePhotos user_id:long = Vector<long>;

func (*UserCore) UserGetUserDataById added in v0.90.1

func (c *UserCore) UserGetUserDataById(in *user.TLUserGetUserDataById) (*mtproto.UserData, error)

UserGetUserDataById user.getUserDataById user_id:long = UserData;

func (*UserCore) UserGetUserDataByToken added in v0.90.1

func (c *UserCore) UserGetUserDataByToken(in *user.TLUserGetUserDataByToken) (*mtproto.UserData, error)

UserGetUserDataByToken user.getUserDataByToken token:string = UserData;

func (*UserCore) UserGetUserDataListByIdList added in v0.90.1

func (c *UserCore) UserGetUserDataListByIdList(in *user.TLUserGetUserDataListByIdList) (*user.Vector_UserData, error)

UserGetUserDataListByIdList user.getUserDataListByIdList user_id_list:Vector<long> = Vector<UserData>;

func (*UserCore) UserImportContacts

func (c *UserCore) UserImportContacts(in *user.TLUserImportContacts) (*user.UserImportedContacts, error)

UserImportContacts user.importContacts user_id:long contacts:Vector<InputContact> = UserImportedContacts;

func (*UserCore) UserIsBlockedByUser

func (c *UserCore) UserIsBlockedByUser(in *user.TLUserIsBlockedByUser) (*mtproto.Bool, error)

UserIsBlockedByUser user.isBlockedByUser user_id:long peer_user_id:long = Bool;

func (*UserCore) UserIsBot

func (c *UserCore) UserIsBot(in *user.TLUserIsBot) (*mtproto.Bool, error)

UserIsBot user.isBot id:long = Bool;

func (*UserCore) UserPredefinedBindRegisteredUserId

func (c *UserCore) UserPredefinedBindRegisteredUserId(in *user.TLUserPredefinedBindRegisteredUserId) (*mtproto.Bool, error)

UserPredefinedBindRegisteredUserId user.predefinedBindRegisteredUserId phone:string registered_userId:int = Bool;

func (*UserCore) UserResetNotifySettings

func (c *UserCore) UserResetNotifySettings(in *user.TLUserResetNotifySettings) (*mtproto.Bool, error)

UserResetNotifySettings user.resetNotifySettings user_id:int = Bool;

func (*UserCore) UserSearch added in v0.90.1

func (c *UserCore) UserSearch(in *user.TLUserSearch) (*user.UsersFound, error)

UserSearch user.search q:string offset_id:int limit:int hash:long = UsersFound;

func (*UserCore) UserSetAccountDaysTTL

func (c *UserCore) UserSetAccountDaysTTL(in *user.TLUserSetAccountDaysTTL) (*mtproto.Bool, error)

UserSetAccountDaysTTL user.setAccountDaysTTL user_id:int ttl:int = Bool;

func (*UserCore) UserSetBotCommands

func (c *UserCore) UserSetBotCommands(in *user.TLUserSetBotCommands) (*mtproto.Bool, error)

UserSetBotCommands user.setBotCommands user_id:long bot_id:long commands:Vector<BotCommand> = Bool;

func (*UserCore) UserSetContactSignUpNotification

func (c *UserCore) UserSetContactSignUpNotification(in *user.TLUserSetContactSignUpNotification) (*mtproto.Bool, error)

UserSetContactSignUpNotification user.setContactSignUpNotification user_id:long silent:Bool = Bool;

func (*UserCore) UserSetContentSettings

func (c *UserCore) UserSetContentSettings(in *user.TLUserSetContentSettings) (*mtproto.Bool, error)

UserSetContentSettings user.setContentSettings flags:# user_id:long sensitive_enabled:flags.0?true = Bool;

func (*UserCore) UserSetGlobalPrivacySettings

func (c *UserCore) UserSetGlobalPrivacySettings(in *user.TLUserSetGlobalPrivacySettings) (*mtproto.Bool, error)

UserSetGlobalPrivacySettings user.setGlobalPrivacySettings user_id:int settings:GlobalPrivacySettings = Bool;

func (*UserCore) UserSetNotifySettings

func (c *UserCore) UserSetNotifySettings(in *user.TLUserSetNotifySettings) (*mtproto.Bool, error)

UserSetNotifySettings user.setNotifySettings user_id:int peer_type:int peer_id:int settings:PeerNotifySettings = Bool;

func (*UserCore) UserSetPrivacy

func (c *UserCore) UserSetPrivacy(in *user.TLUserSetPrivacy) (*mtproto.Bool, error)

UserSetPrivacy user.setPrivacy user_id:int key_type:int rules:Vector<PrivacyRule> = Bool;

func (*UserCore) UserUnBlockPeer

func (c *UserCore) UserUnBlockPeer(in *user.TLUserUnBlockPeer) (*mtproto.Bool, error)

UserUnBlockPeer user.unBlockPeer user_id:long peer_type:int peer_id:long = Bool;

func (*UserCore) UserUpdateAbout

func (c *UserCore) UserUpdateAbout(in *user.TLUserUpdateAbout) (*mtproto.Bool, error)

UserUpdateAbout user.updateAbout user_id:long about:string = Bool;

func (*UserCore) UserUpdateBotData added in v0.90.1

func (c *UserCore) UserUpdateBotData(in *user.TLUserUpdateBotData) (*mtproto.Bool, error)

UserUpdateBotData user.updateBotData flags:# user_id:long bot_chat_history:flags.15?Bool bot_nochats:flags.16?Bool bot_inline_geo:flags.21?Bool bot_attach_menu:flags.27?Bool bot_inline_placeholder:flags.19?Bool = Bool;

func (*UserCore) UserUpdateEmojiStatus added in v0.90.0

func (c *UserCore) UserUpdateEmojiStatus(in *user.TLUserUpdateEmojiStatus) (*mtproto.Bool, error)

UserUpdateEmojiStatus user.updateEmojiStatus user_id:long emoji_status_document_id:long emoji_status_until:int = Bool;

func (*UserCore) UserUpdateFirstAndLastName

func (c *UserCore) UserUpdateFirstAndLastName(in *user.TLUserUpdateFirstAndLastName) (*mtproto.Bool, error)

UserUpdateFirstAndLastName user.updateFirstAndLastName user_id:long first_name:string last_name:string = Bool;

func (*UserCore) UserUpdateLastSeen

func (c *UserCore) UserUpdateLastSeen(in *user.TLUserUpdateLastSeen) (*mtproto.Bool, error)

UserUpdateLastSeen user.updateLastSeen id:long last_seen_at:long expires:int = Bool;

func (*UserCore) UserUpdatePredefinedCode

func (c *UserCore) UserUpdatePredefinedCode(in *user.TLUserUpdatePredefinedCode) (*mtproto.PredefinedUser, error)

UserUpdatePredefinedCode user.updatePredefinedCode phone:string code:string = PredefinedUser;

func (*UserCore) UserUpdatePredefinedFirstAndLastName

func (c *UserCore) UserUpdatePredefinedFirstAndLastName(in *user.TLUserUpdatePredefinedFirstAndLastName) (*mtproto.PredefinedUser, error)

UserUpdatePredefinedFirstAndLastName user.updatePredefinedFirstAndLastName flags:# phone:string first_name:string last_name:flags.0?string = PredefinedUser;

func (*UserCore) UserUpdatePredefinedUsername

func (c *UserCore) UserUpdatePredefinedUsername(in *user.TLUserUpdatePredefinedUsername) (*mtproto.PredefinedUser, error)

UserUpdatePredefinedUsername user.updatePredefinedUsername flags:# phone:string username:flags.1?string = PredefinedUser;

func (*UserCore) UserUpdatePredefinedVerified

func (c *UserCore) UserUpdatePredefinedVerified(in *user.TLUserUpdatePredefinedVerified) (*mtproto.PredefinedUser, error)

UserUpdatePredefinedVerified user.updatePredefinedVerified flags:# phone:string verified:flags.1?true = PredefinedUser;

func (*UserCore) UserUpdateProfilePhoto

func (c *UserCore) UserUpdateProfilePhoto(in *user.TLUserUpdateProfilePhoto) (*mtproto.Int64, error)

UserUpdateProfilePhoto user.updateProfilePhoto user_id:long id:long = Int64;

func (*UserCore) UserUpdateUsername

func (c *UserCore) UserUpdateUsername(in *user.TLUserUpdateUsername) (*mtproto.Bool, error)

UserUpdateUsername user.updateUsername user_id:long username:string = Bool;

func (*UserCore) UserUpdateVerified

func (c *UserCore) UserUpdateVerified(in *user.TLUserUpdateVerified) (*mtproto.Bool, error)

UserUpdateVerified user.updateVerified user_id:long verified:Bool = Bool;

Source Files

Jump to

Keyboard shortcuts

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