Documentation ¶
Index ¶
- type UserCore
- func (c *UserCore) UserAddContact(in *user.TLUserAddContact) (*mtproto.Bool, error)
- func (c *UserCore) UserAddPeerSettings(in *user.TLUserAddPeerSettings) (*mtproto.Bool, error)
- func (c *UserCore) UserBlockPeer(in *user.TLUserBlockPeer) (*mtproto.Bool, error)
- func (c *UserCore) UserBlockedByUser(in *user.TLUserBlockedByUser) (*mtproto.Bool, error)
- func (c *UserCore) UserChangePhone(in *user.TLUserChangePhone) (*mtproto.Bool, error)
- func (c *UserCore) UserCheckBlockUserList(in *user.TLUserCheckBlockUserList) (*user.Vector_Long, error)
- func (c *UserCore) UserCheckBots(in *user.TLUserCheckBots) (*user.Vector_Long, error)
- func (c *UserCore) UserCheckContact(in *user.TLUserCheckContact) (*mtproto.Bool, error)
- func (c *UserCore) UserCheckPrivacy(in *user.TLUserCheckPrivacy) (*mtproto.Bool, error)
- func (c *UserCore) UserCreateNewPredefinedUser(in *user.TLUserCreateNewPredefinedUser) (*mtproto.PredefinedUser, error)
- func (c *UserCore) UserCreateNewTestUser(in *user.TLUserCreateNewTestUser) (*mtproto.ImmutableUser, error)
- func (c *UserCore) UserCreateNewUser(in *user.TLUserCreateNewUser) (*mtproto.ImmutableUser, error)
- func (c *UserCore) UserDeleteContact(in *user.TLUserDeleteContact) (*mtproto.Bool, error)
- func (c *UserCore) UserDeleteImportersByPhone(in *user.TLUserDeleteImportersByPhone) (*mtproto.Bool, error)
- func (c *UserCore) UserDeletePeerSettings(in *user.TLUserDeletePeerSettings) (*mtproto.Bool, error)
- func (c *UserCore) UserDeleteProfilePhotos(in *user.TLUserDeleteProfilePhotos) (*mtproto.Int64, error)
- func (c *UserCore) UserDeleteUser(in *user.TLUserDeleteUser) (*mtproto.Bool, error)
- func (c *UserCore) UserGetAccountDaysTTL(in *user.TLUserGetAccountDaysTTL) (*mtproto.AccountDaysTTL, error)
- func (c *UserCore) UserGetAllNotifySettings(in *user.TLUserGetAllNotifySettings) (*user.Vector_PeerPeerNotifySettings, error)
- func (c *UserCore) UserGetAllPredefinedUser(in *user.TLUserGetAllPredefinedUser) (*user.Vector_PredefinedUser, error)
- func (c *UserCore) UserGetBlockedList(in *user.TLUserGetBlockedList) (*user.Vector_PeerBlocked, error)
- func (c *UserCore) UserGetBotInfo(in *user.TLUserGetBotInfo) (*mtproto.BotInfo, error)
- func (c *UserCore) UserGetContact(in *user.TLUserGetContact) (*mtproto.ContactData, error)
- func (c *UserCore) UserGetContactIdList(in *user.TLUserGetContactIdList) (*user.Vector_Long, error)
- func (c *UserCore) UserGetContactList(in *user.TLUserGetContactList) (*user.Vector_ContactData, error)
- func (c *UserCore) UserGetContactSignUpNotification(in *user.TLUserGetContactSignUpNotification) (*mtproto.Bool, error)
- func (c *UserCore) UserGetContentSettings(in *user.TLUserGetContentSettings) (*mtproto.Account_ContentSettings, error)
- func (c *UserCore) UserGetCountryCode(in *user.TLUserGetCountryCode) (*mtproto.String, error)
- func (c *UserCore) UserGetFullUser(in *user.TLUserGetFullUser) (*mtproto.Users_UserFull, error)
- func (c *UserCore) UserGetGlobalPrivacySettings(in *user.TLUserGetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)
- func (c *UserCore) UserGetImmutableUser(in *user.TLUserGetImmutableUser) (*mtproto.ImmutableUser, error)
- func (c *UserCore) UserGetImmutableUserByPhone(in *user.TLUserGetImmutableUserByPhone) (*mtproto.ImmutableUser, error)
- func (c *UserCore) UserGetImmutableUserByToken(in *user.TLUserGetImmutableUserByToken) (*mtproto.ImmutableUser, error)
- func (c *UserCore) UserGetImmutableUserV2(in *user.TLUserGetImmutableUserV2) (*mtproto.ImmutableUser, error)
- func (c *UserCore) UserGetImportersByPhone(in *user.TLUserGetImportersByPhone) (*user.Vector_InputContact, error)
- func (c *UserCore) UserGetLastSeen(in *user.TLUserGetLastSeen) (*user.LastSeenData, error)
- func (c *UserCore) UserGetLastSeens(in *user.TLUserGetLastSeens) (*user.Vector_LastSeenData, error)
- func (c *UserCore) UserGetMutableUsers(in *user.TLUserGetMutableUsers) (*user.Vector_ImmutableUser, error)
- func (c *UserCore) UserGetMutableUsersV2(in *user.TLUserGetMutableUsersV2) (*mtproto.MutableUsers, error)
- func (c *UserCore) UserGetNotifySettings(in *user.TLUserGetNotifySettings) (*mtproto.PeerNotifySettings, error)
- func (c *UserCore) UserGetNotifySettingsList(in *user.TLUserGetNotifySettingsList) (*user.Vector_PeerPeerNotifySettings, error)
- func (c *UserCore) UserGetPeerSettings(in *user.TLUserGetPeerSettings) (*mtproto.PeerSettings, error)
- func (c *UserCore) UserGetPredefinedUser(in *user.TLUserGetPredefinedUser) (*mtproto.PredefinedUser, error)
- func (c *UserCore) UserGetPrivacy(in *user.TLUserGetPrivacy) (*user.Vector_PrivacyRule, error)
- func (c *UserCore) UserGetProfilePhotos(in *user.TLUserGetProfilePhotos) (*user.Vector_Long, error)
- func (c *UserCore) UserGetUserDataById(in *user.TLUserGetUserDataById) (*mtproto.UserData, error)
- func (c *UserCore) UserGetUserDataByToken(in *user.TLUserGetUserDataByToken) (*mtproto.UserData, error)
- func (c *UserCore) UserGetUserDataListByIdList(in *user.TLUserGetUserDataListByIdList) (*user.Vector_UserData, error)
- func (c *UserCore) UserImportContacts(in *user.TLUserImportContacts) (*user.UserImportedContacts, error)
- func (c *UserCore) UserIsBlockedByUser(in *user.TLUserIsBlockedByUser) (*mtproto.Bool, error)
- func (c *UserCore) UserIsBot(in *user.TLUserIsBot) (*mtproto.Bool, error)
- func (c *UserCore) UserPredefinedBindRegisteredUserId(in *user.TLUserPredefinedBindRegisteredUserId) (*mtproto.Bool, error)
- func (c *UserCore) UserResetNotifySettings(in *user.TLUserResetNotifySettings) (*mtproto.Bool, error)
- func (c *UserCore) UserSearch(in *user.TLUserSearch) (*user.UsersFound, error)
- func (c *UserCore) UserSetAccountDaysTTL(in *user.TLUserSetAccountDaysTTL) (*mtproto.Bool, error)
- func (c *UserCore) UserSetBotCommands(in *user.TLUserSetBotCommands) (*mtproto.Bool, error)
- func (c *UserCore) UserSetContactSignUpNotification(in *user.TLUserSetContactSignUpNotification) (*mtproto.Bool, error)
- func (c *UserCore) UserSetContentSettings(in *user.TLUserSetContentSettings) (*mtproto.Bool, error)
- func (c *UserCore) UserSetGlobalPrivacySettings(in *user.TLUserSetGlobalPrivacySettings) (*mtproto.Bool, error)
- func (c *UserCore) UserSetNotifySettings(in *user.TLUserSetNotifySettings) (*mtproto.Bool, error)
- func (c *UserCore) UserSetPrivacy(in *user.TLUserSetPrivacy) (*mtproto.Bool, error)
- func (c *UserCore) UserUnBlockPeer(in *user.TLUserUnBlockPeer) (*mtproto.Bool, error)
- func (c *UserCore) UserUpdateAbout(in *user.TLUserUpdateAbout) (*mtproto.Bool, error)
- func (c *UserCore) UserUpdateBotData(in *user.TLUserUpdateBotData) (*mtproto.Bool, error)
- func (c *UserCore) UserUpdateEmojiStatus(in *user.TLUserUpdateEmojiStatus) (*mtproto.Bool, error)
- func (c *UserCore) UserUpdateFirstAndLastName(in *user.TLUserUpdateFirstAndLastName) (*mtproto.Bool, error)
- func (c *UserCore) UserUpdateLastSeen(in *user.TLUserUpdateLastSeen) (*mtproto.Bool, error)
- func (c *UserCore) UserUpdatePredefinedCode(in *user.TLUserUpdatePredefinedCode) (*mtproto.PredefinedUser, error)
- func (c *UserCore) UserUpdatePredefinedFirstAndLastName(in *user.TLUserUpdatePredefinedFirstAndLastName) (*mtproto.PredefinedUser, error)
- func (c *UserCore) UserUpdatePredefinedUsername(in *user.TLUserUpdatePredefinedUsername) (*mtproto.PredefinedUser, error)
- func (c *UserCore) UserUpdatePredefinedVerified(in *user.TLUserUpdatePredefinedVerified) (*mtproto.PredefinedUser, error)
- func (c *UserCore) UserUpdateProfilePhoto(in *user.TLUserUpdateProfilePhoto) (*mtproto.Int64, error)
- func (c *UserCore) UserUpdateUsername(in *user.TLUserUpdateUsername) (*mtproto.Bool, error)
- func (c *UserCore) UserUpdateVerified(in *user.TLUserUpdateVerified) (*mtproto.Bool, error)
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 (*UserCore) UserAddContact ¶
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 ¶
UserAddPeerSettings user.addPeerSettings user_id:int peer_type:int peer_id:int settings:PeerSettings = Bool;
func (*UserCore) UserBlockPeer ¶
UserBlockPeer user.blockPeer user_id:long peer_type:int peer_id:long = Bool;
func (*UserCore) UserBlockedByUser ¶
UserBlockedByUser user.blockedByUser userId:long peer_user_id:long = Bool;
func (*UserCore) UserChangePhone ¶
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 ¶
UserCheckContact user.checkContact user_id:long id:long = Bool;
func (*UserCore) UserCheckPrivacy ¶
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 ¶
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 ¶
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
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 ¶
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 ¶
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
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 ¶
UserIsBlockedByUser user.isBlockedByUser user_id:long peer_user_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 ¶
UserSetAccountDaysTTL user.setAccountDaysTTL user_id:int ttl:int = Bool;
func (*UserCore) UserSetBotCommands ¶
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 ¶
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 ¶
UserSetNotifySettings user.setNotifySettings user_id:int peer_type:int peer_id:int settings:PeerNotifySettings = Bool;
func (*UserCore) UserSetPrivacy ¶
UserSetPrivacy user.setPrivacy user_id:int key_type:int rules:Vector<PrivacyRule> = Bool;
func (*UserCore) UserUnBlockPeer ¶
UserUnBlockPeer user.unBlockPeer user_id:long peer_type:int peer_id:long = Bool;
func (*UserCore) UserUpdateAbout ¶
UserUpdateAbout user.updateAbout user_id:long about:string = Bool;
func (*UserCore) UserUpdateBotData ¶ added in v0.90.1
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
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 ¶
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 ¶
UserUpdateUsername user.updateUsername user_id:long username:string = Bool;
func (*UserCore) UserUpdateVerified ¶
UserUpdateVerified user.updateVerified user_id:long verified:Bool = Bool;
Source Files ¶
- core.go
- user.addContact_handler.go
- user.addPeerSettings_handler.go
- user.blockPeer_handler.go
- user.blockedByUser_handler.go
- user.changePhone_handler.go
- user.checkBlockUserList_handler.go
- user.checkBots_handler.go
- user.checkContact_handler.go
- user.checkPrivacy_handler.go
- user.createNewPredefinedUser_handler.go
- user.createNewTestUser_handler.go
- user.createNewUser_handler.go
- user.deleteContact_handler.go
- user.deleteImportersByPhone_handler.go
- user.deletePeerSettings_handler.go
- user.deleteProfilePhotos_handler.go
- user.deleteUser_handler.go
- user.getAccountDaysTTL_handler.go
- user.getAllNotifySettings_handler.go
- user.getAllPredefinedUser_handler.go
- user.getBlockedList_handler.go
- user.getBotInfo_handler.go
- user.getContactIdList_handler.go
- user.getContactList_handler.go
- user.getContactSignUpNotification_handler.go
- user.getContact_handler.go
- user.getContentSettings_handler.go
- user.getCountryCode_handler.go
- user.getFullUser_handler.go
- user.getGlobalPrivacySettings_handler.go
- user.getImmutableUserByPhone_handler.go
- user.getImmutableUserByToken_handler.go
- user.getImmutableUserV2_handler.go
- user.getImmutableUser_handler.go
- user.getImportersByPhone_handler.go
- user.getLastSeen_handler.go
- user.getLastSeens_handler.go
- user.getMutableUsersV2_handler.go
- user.getMutableUsers_handler.go
- user.getNotifySettingsList_handler.go
- user.getNotifySettings_handler.go
- user.getPeerSettings_handler.go
- user.getPredefinedUser_handler.go
- user.getPrivacy_handler.go
- user.getProfilePhotos_handler.go
- user.getUserDataById_handler.go
- user.getUserDataByToken_handler.go
- user.getUserDataListByIdList_handler.go
- user.importContacts_handler.go
- user.isBlockedByUser_handler.go
- user.isBot_handler.go
- user.predefinedBindRegisteredUserId_handler.go
- user.resetNotifySettings_handler.go
- user.search_handler.go
- user.setAccountDaysTTL_handler.go
- user.setBotCommands_handler.go
- user.setContactSignUpNotification_handler.go
- user.setContentSettings_handler.go
- user.setGlobalPrivacySettings_handler.go
- user.setNotifySettings_handler.go
- user.setPrivacy_handler.go
- user.unBlockPeer_handler.go
- user.updateAbout_handler.go
- user.updateBotData_handler.go
- user.updateEmojiStatus_handler.go
- user.updateFirstAndLastName_handler.go
- user.updateLastSeen_handler.go
- user.updatePredefinedCode_handler.go
- user.updatePredefinedFirstAndLastName_handler.go
- user.updatePredefinedUsername_handler.go
- user.updatePredefinedVerified_handler.go
- user.updateProfilePhoto_handler.go
- user.updateUsername_handler.go
- user.updateVerified_handler.go