Documentation
¶
Index ¶
- type Service
- func (s *Service) GetServiceContext() *svc.ServiceContext
- func (s *Service) UserAddContact(ctx context.Context, request *user.TLUserAddContact) (*mtproto.Bool, error)
- func (s *Service) UserAddPeerSettings(ctx context.Context, request *user.TLUserAddPeerSettings) (*mtproto.Bool, error)
- func (s *Service) UserBlockPeer(ctx context.Context, request *user.TLUserBlockPeer) (*mtproto.Bool, error)
- func (s *Service) UserBlockedByUser(ctx context.Context, request *user.TLUserBlockedByUser) (*mtproto.Bool, error)
- func (s *Service) UserChangePhone(ctx context.Context, request *user.TLUserChangePhone) (*mtproto.Bool, error)
- func (s *Service) UserCheckBlockUserList(ctx context.Context, request *user.TLUserCheckBlockUserList) (*user.Vector_Long, error)
- func (s *Service) UserCheckBots(ctx context.Context, request *user.TLUserCheckBots) (*user.Vector_Long, error)
- func (s *Service) UserCheckContact(ctx context.Context, request *user.TLUserCheckContact) (*mtproto.Bool, error)
- func (s *Service) UserCheckPrivacy(ctx context.Context, request *user.TLUserCheckPrivacy) (*mtproto.Bool, error)
- func (s *Service) UserCreateNewPredefinedUser(ctx context.Context, request *user.TLUserCreateNewPredefinedUser) (*mtproto.PredefinedUser, error)
- func (s *Service) UserCreateNewTestUser(ctx context.Context, request *user.TLUserCreateNewTestUser) (*mtproto.ImmutableUser, error)
- func (s *Service) UserCreateNewUser(ctx context.Context, request *user.TLUserCreateNewUser) (*mtproto.ImmutableUser, error)
- func (s *Service) UserDeleteContact(ctx context.Context, request *user.TLUserDeleteContact) (*mtproto.Bool, error)
- func (s *Service) UserDeleteImportersByPhone(ctx context.Context, request *user.TLUserDeleteImportersByPhone) (*mtproto.Bool, error)
- func (s *Service) UserDeletePeerSettings(ctx context.Context, request *user.TLUserDeletePeerSettings) (*mtproto.Bool, error)
- func (s *Service) UserDeleteProfilePhotos(ctx context.Context, request *user.TLUserDeleteProfilePhotos) (*mtproto.Int64, error)
- func (s *Service) UserDeleteUser(ctx context.Context, request *user.TLUserDeleteUser) (*mtproto.Bool, error)
- func (s *Service) UserGetAccountDaysTTL(ctx context.Context, request *user.TLUserGetAccountDaysTTL) (*mtproto.AccountDaysTTL, error)
- func (s *Service) UserGetAllNotifySettings(ctx context.Context, request *user.TLUserGetAllNotifySettings) (*user.Vector_PeerPeerNotifySettings, error)
- func (s *Service) UserGetAllPredefinedUser(ctx context.Context, request *user.TLUserGetAllPredefinedUser) (*user.Vector_PredefinedUser, error)
- func (s *Service) UserGetBlockedList(ctx context.Context, request *user.TLUserGetBlockedList) (*user.Vector_PeerBlocked, error)
- func (s *Service) UserGetBotInfo(ctx context.Context, request *user.TLUserGetBotInfo) (*mtproto.BotInfo, error)
- func (s *Service) UserGetContact(ctx context.Context, request *user.TLUserGetContact) (*mtproto.ContactData, error)
- func (s *Service) UserGetContactIdList(ctx context.Context, request *user.TLUserGetContactIdList) (*user.Vector_Long, error)
- func (s *Service) UserGetContactList(ctx context.Context, request *user.TLUserGetContactList) (*user.Vector_ContactData, error)
- func (s *Service) UserGetContactSignUpNotification(ctx context.Context, request *user.TLUserGetContactSignUpNotification) (*mtproto.Bool, error)
- func (s *Service) UserGetContentSettings(ctx context.Context, request *user.TLUserGetContentSettings) (*mtproto.Account_ContentSettings, error)
- func (s *Service) UserGetCountryCode(ctx context.Context, request *user.TLUserGetCountryCode) (*mtproto.String, error)
- func (s *Service) UserGetFullUser(ctx context.Context, request *user.TLUserGetFullUser) (*mtproto.Users_UserFull, error)
- func (s *Service) UserGetGlobalPrivacySettings(ctx context.Context, request *user.TLUserGetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)
- func (s *Service) UserGetImmutableUser(ctx context.Context, request *user.TLUserGetImmutableUser) (*mtproto.ImmutableUser, error)
- func (s *Service) UserGetImmutableUserByPhone(ctx context.Context, request *user.TLUserGetImmutableUserByPhone) (*mtproto.ImmutableUser, error)
- func (s *Service) UserGetImmutableUserByToken(ctx context.Context, request *user.TLUserGetImmutableUserByToken) (*mtproto.ImmutableUser, error)
- func (s *Service) UserGetImmutableUserV2(ctx context.Context, request *user.TLUserGetImmutableUserV2) (*mtproto.ImmutableUser, error)
- func (s *Service) UserGetImportersByPhone(ctx context.Context, request *user.TLUserGetImportersByPhone) (*user.Vector_InputContact, error)
- func (s *Service) UserGetLastSeen(ctx context.Context, request *user.TLUserGetLastSeen) (*user.LastSeenData, error)
- func (s *Service) UserGetLastSeens(ctx context.Context, request *user.TLUserGetLastSeens) (*user.Vector_LastSeenData, error)
- func (s *Service) UserGetMutableUsers(ctx context.Context, request *user.TLUserGetMutableUsers) (*user.Vector_ImmutableUser, error)
- func (s *Service) UserGetMutableUsersV2(ctx context.Context, request *user.TLUserGetMutableUsersV2) (*mtproto.MutableUsers, error)
- func (s *Service) UserGetNotifySettings(ctx context.Context, request *user.TLUserGetNotifySettings) (*mtproto.PeerNotifySettings, error)
- func (s *Service) UserGetNotifySettingsList(ctx context.Context, request *user.TLUserGetNotifySettingsList) (*user.Vector_PeerPeerNotifySettings, error)
- func (s *Service) UserGetPeerSettings(ctx context.Context, request *user.TLUserGetPeerSettings) (*mtproto.PeerSettings, error)
- func (s *Service) UserGetPredefinedUser(ctx context.Context, request *user.TLUserGetPredefinedUser) (*mtproto.PredefinedUser, error)
- func (s *Service) UserGetPrivacy(ctx context.Context, request *user.TLUserGetPrivacy) (*user.Vector_PrivacyRule, error)
- func (s *Service) UserGetProfilePhotos(ctx context.Context, request *user.TLUserGetProfilePhotos) (*user.Vector_Long, error)
- func (s *Service) UserGetUserDataById(ctx context.Context, request *user.TLUserGetUserDataById) (*mtproto.UserData, error)
- func (s *Service) UserGetUserDataByToken(ctx context.Context, request *user.TLUserGetUserDataByToken) (*mtproto.UserData, error)
- func (s *Service) UserGetUserDataListByIdList(ctx context.Context, request *user.TLUserGetUserDataListByIdList) (*user.Vector_UserData, error)
- func (s *Service) UserImportContacts(ctx context.Context, request *user.TLUserImportContacts) (*user.UserImportedContacts, error)
- func (s *Service) UserIsBlockedByUser(ctx context.Context, request *user.TLUserIsBlockedByUser) (*mtproto.Bool, error)
- func (s *Service) UserIsBot(ctx context.Context, request *user.TLUserIsBot) (*mtproto.Bool, error)
- func (s *Service) UserPredefinedBindRegisteredUserId(ctx context.Context, request *user.TLUserPredefinedBindRegisteredUserId) (*mtproto.Bool, error)
- func (s *Service) UserResetNotifySettings(ctx context.Context, request *user.TLUserResetNotifySettings) (*mtproto.Bool, error)
- func (s *Service) UserSearch(ctx context.Context, request *user.TLUserSearch) (*user.UsersFound, error)
- func (s *Service) UserSetAccountDaysTTL(ctx context.Context, request *user.TLUserSetAccountDaysTTL) (*mtproto.Bool, error)
- func (s *Service) UserSetBotCommands(ctx context.Context, request *user.TLUserSetBotCommands) (*mtproto.Bool, error)
- func (s *Service) UserSetContactSignUpNotification(ctx context.Context, request *user.TLUserSetContactSignUpNotification) (*mtproto.Bool, error)
- func (s *Service) UserSetContentSettings(ctx context.Context, request *user.TLUserSetContentSettings) (*mtproto.Bool, error)
- func (s *Service) UserSetGlobalPrivacySettings(ctx context.Context, request *user.TLUserSetGlobalPrivacySettings) (*mtproto.Bool, error)
- func (s *Service) UserSetNotifySettings(ctx context.Context, request *user.TLUserSetNotifySettings) (*mtproto.Bool, error)
- func (s *Service) UserSetPrivacy(ctx context.Context, request *user.TLUserSetPrivacy) (*mtproto.Bool, error)
- func (s *Service) UserUnBlockPeer(ctx context.Context, request *user.TLUserUnBlockPeer) (*mtproto.Bool, error)
- func (s *Service) UserUpdateAbout(ctx context.Context, request *user.TLUserUpdateAbout) (*mtproto.Bool, error)
- func (s *Service) UserUpdateBotData(ctx context.Context, request *user.TLUserUpdateBotData) (*mtproto.Bool, error)
- func (s *Service) UserUpdateEmojiStatus(ctx context.Context, request *user.TLUserUpdateEmojiStatus) (*mtproto.Bool, error)
- func (s *Service) UserUpdateFirstAndLastName(ctx context.Context, request *user.TLUserUpdateFirstAndLastName) (*mtproto.Bool, error)
- func (s *Service) UserUpdateLastSeen(ctx context.Context, request *user.TLUserUpdateLastSeen) (*mtproto.Bool, error)
- func (s *Service) UserUpdatePredefinedCode(ctx context.Context, request *user.TLUserUpdatePredefinedCode) (*mtproto.PredefinedUser, error)
- func (s *Service) UserUpdatePredefinedFirstAndLastName(ctx context.Context, request *user.TLUserUpdatePredefinedFirstAndLastName) (*mtproto.PredefinedUser, error)
- func (s *Service) UserUpdatePredefinedUsername(ctx context.Context, request *user.TLUserUpdatePredefinedUsername) (*mtproto.PredefinedUser, error)
- func (s *Service) UserUpdatePredefinedVerified(ctx context.Context, request *user.TLUserUpdatePredefinedVerified) (*mtproto.PredefinedUser, error)
- func (s *Service) UserUpdateProfilePhoto(ctx context.Context, request *user.TLUserUpdateProfilePhoto) (*mtproto.Int64, error)
- func (s *Service) UserUpdateUsername(ctx context.Context, request *user.TLUserUpdateUsername) (*mtproto.Bool, error)
- func (s *Service) UserUpdateVerified(ctx context.Context, request *user.TLUserUpdateVerified) (*mtproto.Bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx *svc.ServiceContext) *Service
func (*Service) GetServiceContext ¶ added in v0.90.1
func (s *Service) GetServiceContext() *svc.ServiceContext
func (*Service) UserAddContact ¶
func (s *Service) UserAddContact(ctx context.Context, request *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 (*Service) UserAddPeerSettings ¶
func (s *Service) UserAddPeerSettings(ctx context.Context, request *user.TLUserAddPeerSettings) (*mtproto.Bool, error)
UserAddPeerSettings user.addPeerSettings user_id:long peer_type:int peer_id:long settings:PeerSettings = Bool;
func (*Service) UserBlockPeer ¶
func (s *Service) UserBlockPeer(ctx context.Context, request *user.TLUserBlockPeer) (*mtproto.Bool, error)
UserBlockPeer user.blockPeer user_id:long peer_type:int peer_id:long = Bool;
func (*Service) UserBlockedByUser ¶
func (s *Service) UserBlockedByUser(ctx context.Context, request *user.TLUserBlockedByUser) (*mtproto.Bool, error)
UserBlockedByUser user.blockedByUser user_id:long peer_user_id:long = Bool;
func (*Service) UserChangePhone ¶
func (s *Service) UserChangePhone(ctx context.Context, request *user.TLUserChangePhone) (*mtproto.Bool, error)
UserChangePhone user.changePhone user_id:long phone:string = Bool;
func (*Service) UserCheckBlockUserList ¶
func (s *Service) UserCheckBlockUserList(ctx context.Context, request *user.TLUserCheckBlockUserList) (*user.Vector_Long, error)
UserCheckBlockUserList user.checkBlockUserList user_id:long id:Vector<long> = Vector<long>;
func (*Service) UserCheckBots ¶ added in v0.96.0
func (s *Service) UserCheckBots(ctx context.Context, request *user.TLUserCheckBots) (*user.Vector_Long, error)
UserCheckBots user.checkBots id:Vector<long> = Vector<long>;
func (*Service) UserCheckContact ¶
func (s *Service) UserCheckContact(ctx context.Context, request *user.TLUserCheckContact) (*mtproto.Bool, error)
UserCheckContact user.checkContact user_id:long id:long = Bool;
func (*Service) UserCheckPrivacy ¶
func (s *Service) UserCheckPrivacy(ctx context.Context, request *user.TLUserCheckPrivacy) (*mtproto.Bool, error)
UserCheckPrivacy user.checkPrivacy flags:# user_id:long key_type:int peer_id:long = Bool;
func (*Service) UserCreateNewPredefinedUser ¶
func (s *Service) UserCreateNewPredefinedUser(ctx context.Context, request *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 (*Service) UserCreateNewTestUser ¶ added in v0.96.0
func (s *Service) UserCreateNewTestUser(ctx context.Context, request *user.TLUserCreateNewTestUser) (*mtproto.ImmutableUser, error)
UserCreateNewTestUser user.createNewTestUser secret_key_id:long min_id:long max_id:long = ImmutableUser;
func (*Service) UserCreateNewUser ¶
func (s *Service) UserCreateNewUser(ctx context.Context, request *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 (*Service) UserDeleteContact ¶
func (s *Service) UserDeleteContact(ctx context.Context, request *user.TLUserDeleteContact) (*mtproto.Bool, error)
UserDeleteContact user.deleteContact user_id:long id:long = Bool;
func (*Service) UserDeleteImportersByPhone ¶ added in v0.90.1
func (s *Service) UserDeleteImportersByPhone(ctx context.Context, request *user.TLUserDeleteImportersByPhone) (*mtproto.Bool, error)
UserDeleteImportersByPhone user.deleteImportersByPhone phone:string = Bool;
func (*Service) UserDeletePeerSettings ¶
func (s *Service) UserDeletePeerSettings(ctx context.Context, request *user.TLUserDeletePeerSettings) (*mtproto.Bool, error)
UserDeletePeerSettings user.deletePeerSettings user_id:long peer_type:int peer_id:long = Bool;
func (*Service) UserDeleteProfilePhotos ¶
func (s *Service) UserDeleteProfilePhotos(ctx context.Context, request *user.TLUserDeleteProfilePhotos) (*mtproto.Int64, error)
UserDeleteProfilePhotos user.deleteProfilePhotos user_id:long id:Vector<long> = Int64;
func (*Service) UserDeleteUser ¶ added in v0.90.1
func (s *Service) UserDeleteUser(ctx context.Context, request *user.TLUserDeleteUser) (*mtproto.Bool, error)
UserDeleteUser user.deleteUser user_id:long reason:string = Bool;
func (*Service) UserGetAccountDaysTTL ¶
func (s *Service) UserGetAccountDaysTTL(ctx context.Context, request *user.TLUserGetAccountDaysTTL) (*mtproto.AccountDaysTTL, error)
UserGetAccountDaysTTL user.getAccountDaysTTL user_id:long = AccountDaysTTL;
func (*Service) UserGetAllNotifySettings ¶
func (s *Service) UserGetAllNotifySettings(ctx context.Context, request *user.TLUserGetAllNotifySettings) (*user.Vector_PeerPeerNotifySettings, error)
UserGetAllNotifySettings user.getAllNotifySettings user_id:long = Vector<PeerPeerNotifySettings>;
func (*Service) UserGetAllPredefinedUser ¶
func (s *Service) UserGetAllPredefinedUser(ctx context.Context, request *user.TLUserGetAllPredefinedUser) (*user.Vector_PredefinedUser, error)
UserGetAllPredefinedUser user.getAllPredefinedUser = Vector<PredefinedUser>;
func (*Service) UserGetBlockedList ¶
func (s *Service) UserGetBlockedList(ctx context.Context, request *user.TLUserGetBlockedList) (*user.Vector_PeerBlocked, error)
UserGetBlockedList user.getBlockedList user_id:long offset:int limit:int = Vector<PeerBlocked>;
func (*Service) UserGetBotInfo ¶
func (s *Service) UserGetBotInfo(ctx context.Context, request *user.TLUserGetBotInfo) (*mtproto.BotInfo, error)
UserGetBotInfo user.getBotInfo bot_id:long = BotInfo;
func (*Service) UserGetContact ¶
func (s *Service) UserGetContact(ctx context.Context, request *user.TLUserGetContact) (*mtproto.ContactData, error)
UserGetContact user.getContact user_id:long id:long = ContactData;
func (*Service) UserGetContactIdList ¶
func (s *Service) UserGetContactIdList(ctx context.Context, request *user.TLUserGetContactIdList) (*user.Vector_Long, error)
UserGetContactIdList user.getContactIdList user_id:long = Vector<long>;
func (*Service) UserGetContactList ¶
func (s *Service) UserGetContactList(ctx context.Context, request *user.TLUserGetContactList) (*user.Vector_ContactData, error)
UserGetContactList user.getContactList user_id:long = Vector<ContactData>;
func (*Service) UserGetContactSignUpNotification ¶
func (s *Service) UserGetContactSignUpNotification(ctx context.Context, request *user.TLUserGetContactSignUpNotification) (*mtproto.Bool, error)
UserGetContactSignUpNotification user.getContactSignUpNotification user_id:long = Bool;
func (*Service) UserGetContentSettings ¶
func (s *Service) UserGetContentSettings(ctx context.Context, request *user.TLUserGetContentSettings) (*mtproto.Account_ContentSettings, error)
UserGetContentSettings user.getContentSettings user_id:long = account.ContentSettings;
func (*Service) UserGetCountryCode ¶
func (s *Service) UserGetCountryCode(ctx context.Context, request *user.TLUserGetCountryCode) (*mtproto.String, error)
UserGetCountryCode user.getCountryCode user_id:long = String;
func (*Service) UserGetFullUser ¶
func (s *Service) UserGetFullUser(ctx context.Context, request *user.TLUserGetFullUser) (*mtproto.Users_UserFull, error)
UserGetFullUser user.getFullUser self_user_id:long id:long = users.UserFull;
func (*Service) UserGetGlobalPrivacySettings ¶
func (s *Service) UserGetGlobalPrivacySettings(ctx context.Context, request *user.TLUserGetGlobalPrivacySettings) (*mtproto.GlobalPrivacySettings, error)
UserGetGlobalPrivacySettings user.getGlobalPrivacySettings user_id:long = GlobalPrivacySettings;
func (*Service) UserGetImmutableUser ¶
func (s *Service) UserGetImmutableUser(ctx context.Context, request *user.TLUserGetImmutableUser) (*mtproto.ImmutableUser, error)
UserGetImmutableUser user.getImmutableUser flags:# id:long privacy:flags.1?true contacts:Vector<long> = ImmutableUser;
func (*Service) UserGetImmutableUserByPhone ¶
func (s *Service) UserGetImmutableUserByPhone(ctx context.Context, request *user.TLUserGetImmutableUserByPhone) (*mtproto.ImmutableUser, error)
UserGetImmutableUserByPhone user.getImmutableUserByPhone phone:string = ImmutableUser;
func (*Service) UserGetImmutableUserByToken ¶
func (s *Service) UserGetImmutableUserByToken(ctx context.Context, request *user.TLUserGetImmutableUserByToken) (*mtproto.ImmutableUser, error)
UserGetImmutableUserByToken user.getImmutableUserByToken token:string = ImmutableUser;
func (*Service) UserGetImmutableUserV2 ¶ added in v0.90.4
func (s *Service) UserGetImmutableUserV2(ctx context.Context, request *user.TLUserGetImmutableUserV2) (*mtproto.ImmutableUser, error)
UserGetImmutableUserV2 user.getImmutableUserV2 flags:# id:long privacy:flags.0?true has_to:flags.2?true to:flags.2?Vector<long> = ImmutableUser;
func (*Service) UserGetImportersByPhone ¶ added in v0.90.1
func (s *Service) UserGetImportersByPhone(ctx context.Context, request *user.TLUserGetImportersByPhone) (*user.Vector_InputContact, error)
UserGetImportersByPhone user.getImportersByPhone phone:string = Vector<InputContact>;
func (*Service) UserGetLastSeen ¶
func (s *Service) UserGetLastSeen(ctx context.Context, request *user.TLUserGetLastSeen) (*user.LastSeenData, error)
UserGetLastSeen user.getLastSeen id:long = LastSeenData;
func (*Service) UserGetLastSeens ¶
func (s *Service) UserGetLastSeens(ctx context.Context, request *user.TLUserGetLastSeens) (*user.Vector_LastSeenData, error)
UserGetLastSeens user.getLastSeens id:Vector<long> = Vector<LastSeenData>;
func (*Service) UserGetMutableUsers ¶
func (s *Service) UserGetMutableUsers(ctx context.Context, request *user.TLUserGetMutableUsers) (*user.Vector_ImmutableUser, error)
UserGetMutableUsers user.getMutableUsers id:Vector<long> to:Vector<long> = Vector<ImmutableUser>;
func (*Service) UserGetMutableUsersV2 ¶ added in v0.90.4
func (s *Service) UserGetMutableUsersV2(ctx context.Context, request *user.TLUserGetMutableUsersV2) (*mtproto.MutableUsers, error)
UserGetMutableUsersV2 user.getMutableUsersV2 flags:# id:Vector<long> privacy:flags.0?true has_to:flags.2?true to:flags.2?Vector<long> = MutableUsers;
func (*Service) UserGetNotifySettings ¶
func (s *Service) UserGetNotifySettings(ctx context.Context, request *user.TLUserGetNotifySettings) (*mtproto.PeerNotifySettings, error)
UserGetNotifySettings user.getNotifySettings user_id:long peer_type:int peer_id:long = PeerNotifySettings;
func (*Service) UserGetNotifySettingsList ¶ added in v0.87.3
func (s *Service) UserGetNotifySettingsList(ctx context.Context, request *user.TLUserGetNotifySettingsList) (*user.Vector_PeerPeerNotifySettings, error)
UserGetNotifySettingsList user.getNotifySettingsList user_id:long peers:Vector<PeerUtil> = Vector<PeerPeerNotifySettings>;
func (*Service) UserGetPeerSettings ¶
func (s *Service) UserGetPeerSettings(ctx context.Context, request *user.TLUserGetPeerSettings) (*mtproto.PeerSettings, error)
UserGetPeerSettings user.getPeerSettings user_id:long peer_type:int peer_id:long = PeerSettings;
func (*Service) UserGetPredefinedUser ¶
func (s *Service) UserGetPredefinedUser(ctx context.Context, request *user.TLUserGetPredefinedUser) (*mtproto.PredefinedUser, error)
UserGetPredefinedUser user.getPredefinedUser phone:string = PredefinedUser;
func (*Service) UserGetPrivacy ¶
func (s *Service) UserGetPrivacy(ctx context.Context, request *user.TLUserGetPrivacy) (*user.Vector_PrivacyRule, error)
UserGetPrivacy user.getPrivacy user_id:long key_type:int = Vector<PrivacyRule>;
func (*Service) UserGetProfilePhotos ¶
func (s *Service) UserGetProfilePhotos(ctx context.Context, request *user.TLUserGetProfilePhotos) (*user.Vector_Long, error)
UserGetProfilePhotos user.getProfilePhotos user_id:long = Vector<long>;
func (*Service) UserGetUserDataById ¶ added in v0.90.1
func (s *Service) UserGetUserDataById(ctx context.Context, request *user.TLUserGetUserDataById) (*mtproto.UserData, error)
UserGetUserDataById user.getUserDataById user_id:long = UserData;
func (*Service) UserGetUserDataByToken ¶ added in v0.90.1
func (s *Service) UserGetUserDataByToken(ctx context.Context, request *user.TLUserGetUserDataByToken) (*mtproto.UserData, error)
UserGetUserDataByToken user.getUserDataByToken token:string = UserData;
func (*Service) UserGetUserDataListByIdList ¶ added in v0.90.1
func (s *Service) UserGetUserDataListByIdList(ctx context.Context, request *user.TLUserGetUserDataListByIdList) (*user.Vector_UserData, error)
UserGetUserDataListByIdList user.getUserDataListByIdList user_id_list:Vector<long> = Vector<UserData>;
func (*Service) UserImportContacts ¶
func (s *Service) UserImportContacts(ctx context.Context, request *user.TLUserImportContacts) (*user.UserImportedContacts, error)
UserImportContacts user.importContacts user_id:long contacts:Vector<InputContact> = UserImportedContacts;
func (*Service) UserIsBlockedByUser ¶
func (s *Service) UserIsBlockedByUser(ctx context.Context, request *user.TLUserIsBlockedByUser) (*mtproto.Bool, error)
UserIsBlockedByUser user.isBlockedByUser user_id:long peer_user_id:long = Bool;
func (*Service) UserPredefinedBindRegisteredUserId ¶
func (s *Service) UserPredefinedBindRegisteredUserId(ctx context.Context, request *user.TLUserPredefinedBindRegisteredUserId) (*mtproto.Bool, error)
UserPredefinedBindRegisteredUserId user.predefinedBindRegisteredUserId phone:string registered_userId:long = Bool;
func (*Service) UserResetNotifySettings ¶
func (s *Service) UserResetNotifySettings(ctx context.Context, request *user.TLUserResetNotifySettings) (*mtproto.Bool, error)
UserResetNotifySettings user.resetNotifySettings user_id:long = Bool;
func (*Service) UserSearch ¶ added in v0.90.1
func (s *Service) UserSearch(ctx context.Context, request *user.TLUserSearch) (*user.UsersFound, error)
UserSearch user.search q:string excluded_contacts:Vector<long> offset:long limit:int = UsersFound;
func (*Service) UserSetAccountDaysTTL ¶
func (s *Service) UserSetAccountDaysTTL(ctx context.Context, request *user.TLUserSetAccountDaysTTL) (*mtproto.Bool, error)
UserSetAccountDaysTTL user.setAccountDaysTTL user_id:long ttl:int = Bool;
func (*Service) UserSetBotCommands ¶
func (s *Service) UserSetBotCommands(ctx context.Context, request *user.TLUserSetBotCommands) (*mtproto.Bool, error)
UserSetBotCommands user.setBotCommands user_id:long bot_id:long commands:Vector<BotCommand> = Bool;
func (*Service) UserSetContactSignUpNotification ¶
func (s *Service) UserSetContactSignUpNotification(ctx context.Context, request *user.TLUserSetContactSignUpNotification) (*mtproto.Bool, error)
UserSetContactSignUpNotification user.setContactSignUpNotification user_id:long silent:Bool = Bool;
func (*Service) UserSetContentSettings ¶
func (s *Service) UserSetContentSettings(ctx context.Context, request *user.TLUserSetContentSettings) (*mtproto.Bool, error)
UserSetContentSettings user.setContentSettings flags:# user_id:long sensitive_enabled:flags.0?true = Bool;
func (*Service) UserSetGlobalPrivacySettings ¶
func (s *Service) UserSetGlobalPrivacySettings(ctx context.Context, request *user.TLUserSetGlobalPrivacySettings) (*mtproto.Bool, error)
UserSetGlobalPrivacySettings user.setGlobalPrivacySettings user_id:long settings:GlobalPrivacySettings = Bool;
func (*Service) UserSetNotifySettings ¶
func (s *Service) UserSetNotifySettings(ctx context.Context, request *user.TLUserSetNotifySettings) (*mtproto.Bool, error)
UserSetNotifySettings user.setNotifySettings user_id:long peer_type:int peer_id:long settings:PeerNotifySettings = Bool;
func (*Service) UserSetPrivacy ¶
func (s *Service) UserSetPrivacy(ctx context.Context, request *user.TLUserSetPrivacy) (*mtproto.Bool, error)
UserSetPrivacy user.setPrivacy user_id:long key_type:int rules:Vector<PrivacyRule> = Bool;
func (*Service) UserUnBlockPeer ¶
func (s *Service) UserUnBlockPeer(ctx context.Context, request *user.TLUserUnBlockPeer) (*mtproto.Bool, error)
UserUnBlockPeer user.unBlockPeer user_id:long peer_type:int peer_id:long = Bool;
func (*Service) UserUpdateAbout ¶
func (s *Service) UserUpdateAbout(ctx context.Context, request *user.TLUserUpdateAbout) (*mtproto.Bool, error)
UserUpdateAbout user.updateAbout user_id:long about:string = Bool;
func (*Service) UserUpdateBotData ¶ added in v0.90.1
func (s *Service) UserUpdateBotData(ctx context.Context, request *user.TLUserUpdateBotData) (*mtproto.Bool, error)
UserUpdateBotData user.updateBotData flags:# bot_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 (*Service) UserUpdateEmojiStatus ¶ added in v0.90.0
func (s *Service) UserUpdateEmojiStatus(ctx context.Context, request *user.TLUserUpdateEmojiStatus) (*mtproto.Bool, error)
UserUpdateEmojiStatus user.updateEmojiStatus user_id:long emoji_status_document_id:long emoji_status_until:int = Bool;
func (*Service) UserUpdateFirstAndLastName ¶
func (s *Service) UserUpdateFirstAndLastName(ctx context.Context, request *user.TLUserUpdateFirstAndLastName) (*mtproto.Bool, error)
UserUpdateFirstAndLastName user.updateFirstAndLastName user_id:long first_name:string last_name:string = Bool;
func (*Service) UserUpdateLastSeen ¶
func (s *Service) UserUpdateLastSeen(ctx context.Context, request *user.TLUserUpdateLastSeen) (*mtproto.Bool, error)
UserUpdateLastSeen user.updateLastSeen id:long last_seen_at:long expires:int = Bool;
func (*Service) UserUpdatePredefinedCode ¶
func (s *Service) UserUpdatePredefinedCode(ctx context.Context, request *user.TLUserUpdatePredefinedCode) (*mtproto.PredefinedUser, error)
UserUpdatePredefinedCode user.updatePredefinedCode phone:string code:string = PredefinedUser;
func (*Service) UserUpdatePredefinedFirstAndLastName ¶
func (s *Service) UserUpdatePredefinedFirstAndLastName(ctx context.Context, request *user.TLUserUpdatePredefinedFirstAndLastName) (*mtproto.PredefinedUser, error)
UserUpdatePredefinedFirstAndLastName user.updatePredefinedFirstAndLastName flags:# phone:string first_name:string last_name:flags.0?string = PredefinedUser;
func (*Service) UserUpdatePredefinedUsername ¶
func (s *Service) UserUpdatePredefinedUsername(ctx context.Context, request *user.TLUserUpdatePredefinedUsername) (*mtproto.PredefinedUser, error)
UserUpdatePredefinedUsername user.updatePredefinedUsername flags:# phone:string username:flags.1?string = PredefinedUser;
func (*Service) UserUpdatePredefinedVerified ¶
func (s *Service) UserUpdatePredefinedVerified(ctx context.Context, request *user.TLUserUpdatePredefinedVerified) (*mtproto.PredefinedUser, error)
UserUpdatePredefinedVerified user.updatePredefinedVerified flags:# phone:string verified:flags.1?true = PredefinedUser;
func (*Service) UserUpdateProfilePhoto ¶
func (s *Service) UserUpdateProfilePhoto(ctx context.Context, request *user.TLUserUpdateProfilePhoto) (*mtproto.Int64, error)
UserUpdateProfilePhoto user.updateProfilePhoto user_id:long id:long = Int64;
func (*Service) UserUpdateUsername ¶
func (s *Service) UserUpdateUsername(ctx context.Context, request *user.TLUserUpdateUsername) (*mtproto.Bool, error)
UserUpdateUsername user.updateUsername user_id:long username:string = Bool;
func (*Service) UserUpdateVerified ¶
func (s *Service) UserUpdateVerified(ctx context.Context, request *user.TLUserUpdateVerified) (*mtproto.Bool, error)
UserUpdateVerified user.updateVerified user_id:long verified:Bool = Bool;