rubjs 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rubjs/client.d.ts +0 -35
- package/rubjs/client.js +0 -48
- package/rubjs/crypto/index.d.ts +0 -12
- package/rubjs/crypto/index.js +0 -95
- package/rubjs/index.d.ts +0 -7
- package/rubjs/index.js +0 -51
- package/rubjs/methods/advanced/builder.d.ts +0 -3
- package/rubjs/methods/advanced/builder.js +0 -41
- package/rubjs/methods/advanced/index.d.ts +0 -2
- package/rubjs/methods/advanced/index.js +0 -8
- package/rubjs/methods/auth/index.d.ts +0 -5
- package/rubjs/methods/auth/index.js +0 -14
- package/rubjs/methods/auth/logout.d.ts +0 -3
- package/rubjs/methods/auth/logout.js +0 -17
- package/rubjs/methods/auth/registerDevice.d.ts +0 -3
- package/rubjs/methods/auth/registerDevice.js +0 -61
- package/rubjs/methods/auth/sendCode.d.ts +0 -3
- package/rubjs/methods/auth/sendCode.js +0 -25
- package/rubjs/methods/auth/signIn.d.ts +0 -3
- package/rubjs/methods/auth/signIn.js +0 -24
- package/rubjs/methods/channels/addChannel.d.ts +0 -3
- package/rubjs/methods/channels/addChannel.js +0 -26
- package/rubjs/methods/channels/addChannelMembers.d.ts +0 -3
- package/rubjs/methods/channels/addChannelMembers.js +0 -22
- package/rubjs/methods/channels/banChannelMember.d.ts +0 -3
- package/rubjs/methods/channels/banChannelMember.js +0 -23
- package/rubjs/methods/channels/cancelChangeObjectOwner.d.ts +0 -3
- package/rubjs/methods/channels/cancelChangeObjectOwner.js +0 -17
- package/rubjs/methods/channels/channelPreviewByJoinLink.d.ts +0 -3
- package/rubjs/methods/channels/channelPreviewByJoinLink.js +0 -19
- package/rubjs/methods/channels/checkChannelUsername.d.ts +0 -3
- package/rubjs/methods/channels/checkChannelUsername.js +0 -19
- package/rubjs/methods/channels/createChannelVoiceChat.d.ts +0 -3
- package/rubjs/methods/channels/createChannelVoiceChat.js +0 -17
- package/rubjs/methods/channels/discardChannelVoiceChat.d.ts +0 -3
- package/rubjs/methods/channels/discardChannelVoiceChat.js +0 -20
- package/rubjs/methods/channels/editChannelInfo.d.ts +0 -4
- package/rubjs/methods/channels/editChannelInfo.js +0 -48
- package/rubjs/methods/channels/getBannedChannelMembers.d.ts +0 -3
- package/rubjs/methods/channels/getBannedChannelMembers.js +0 -20
- package/rubjs/methods/channels/getChannelAdminAccessList.d.ts +0 -3
- package/rubjs/methods/channels/getChannelAdminAccessList.js +0 -20
- package/rubjs/methods/channels/getChannelAdminMembers.d.ts +0 -3
- package/rubjs/methods/channels/getChannelAdminMembers.js +0 -20
- package/rubjs/methods/channels/getChannelAllMembers.d.ts +0 -3
- package/rubjs/methods/channels/getChannelAllMembers.js +0 -21
- package/rubjs/methods/channels/getChannelInfo.d.ts +0 -3
- package/rubjs/methods/channels/getChannelInfo.js +0 -17
- package/rubjs/methods/channels/getChannelLink.d.ts +0 -3
- package/rubjs/methods/channels/getChannelLink.js +0 -17
- package/rubjs/methods/channels/getPendingObjectOwner.d.ts +0 -3
- package/rubjs/methods/channels/getPendingObjectOwner.js +0 -17
- package/rubjs/methods/channels/index.d.ts +0 -26
- package/rubjs/methods/channels/index.js +0 -56
- package/rubjs/methods/channels/joinChannelAction.d.ts +0 -3
- package/rubjs/methods/channels/joinChannelAction.js +0 -19
- package/rubjs/methods/channels/joinChannelByLink.d.ts +0 -3
- package/rubjs/methods/channels/joinChannelByLink.js +0 -19
- package/rubjs/methods/channels/leaveChannelVoiceChat.d.ts +0 -3
- package/rubjs/methods/channels/leaveChannelVoiceChat.js +0 -20
- package/rubjs/methods/channels/removeChannel.d.ts +0 -3
- package/rubjs/methods/channels/removeChannel.js +0 -17
- package/rubjs/methods/channels/requestChangeObjectOwner.d.ts +0 -3
- package/rubjs/methods/channels/requestChangeObjectOwner.js +0 -20
- package/rubjs/methods/channels/seenChannelMessages.d.ts +0 -3
- package/rubjs/methods/channels/seenChannelMessages.js +0 -21
- package/rubjs/methods/channels/setChannelLink.d.ts +0 -3
- package/rubjs/methods/channels/setChannelLink.js +0 -17
- package/rubjs/methods/channels/setChannelVoiceChatSetting.d.ts +0 -3
- package/rubjs/methods/channels/setChannelVoiceChatSetting.js +0 -26
- package/rubjs/methods/channels/updateChannelUsername.d.ts +0 -3
- package/rubjs/methods/channels/updateChannelUsername.js +0 -20
- package/rubjs/methods/chats/actionOnJoinRequest.d.ts +0 -3
- package/rubjs/methods/chats/actionOnJoinRequest.js +0 -22
- package/rubjs/methods/chats/addLiveComment.d.ts +0 -3
- package/rubjs/methods/chats/addLiveComment.js +0 -17
- package/rubjs/methods/chats/clickMessageUrl.d.ts +0 -3
- package/rubjs/methods/chats/clickMessageUrl.js +0 -17
- package/rubjs/methods/chats/createJoinLink.d.ts +0 -3
- package/rubjs/methods/chats/createJoinLink.js +0 -23
- package/rubjs/methods/chats/deleteAvatar.d.ts +0 -3
- package/rubjs/methods/chats/deleteAvatar.js +0 -17
- package/rubjs/methods/chats/deleteChatHistory.d.ts +0 -3
- package/rubjs/methods/chats/deleteChatHistory.js +0 -20
- package/rubjs/methods/chats/editJoinLink.d.ts +0 -3
- package/rubjs/methods/chats/editJoinLink.js +0 -34
- package/rubjs/methods/chats/getAbsObjects.d.ts +0 -3
- package/rubjs/methods/chats/getAbsObjects.js +0 -19
- package/rubjs/methods/chats/getAvatars.d.ts +0 -3
- package/rubjs/methods/chats/getAvatars.js +0 -17
- package/rubjs/methods/chats/getChatReaction.d.ts +0 -3
- package/rubjs/methods/chats/getChatReaction.js +0 -17
- package/rubjs/methods/chats/getChats.d.ts +0 -3
- package/rubjs/methods/chats/getChats.js +0 -17
- package/rubjs/methods/chats/getChatsUpdates.d.ts +0 -3
- package/rubjs/methods/chats/getChatsUpdates.js +0 -17
- package/rubjs/methods/chats/getJoinLinks.d.ts +0 -3
- package/rubjs/methods/chats/getJoinLinks.js +0 -17
- package/rubjs/methods/chats/getJoinRequests.d.ts +0 -3
- package/rubjs/methods/chats/getJoinRequests.js +0 -17
- package/rubjs/methods/chats/getLinkFromAppUrl.d.ts +0 -3
- package/rubjs/methods/chats/getLinkFromAppUrl.js +0 -17
- package/rubjs/methods/chats/getLiveComments.d.ts +0 -3
- package/rubjs/methods/chats/getLiveComments.js +0 -17
- package/rubjs/methods/chats/getLivePlayUrl.d.ts +0 -3
- package/rubjs/methods/chats/getLivePlayUrl.js +0 -17
- package/rubjs/methods/chats/getLiveStatus.d.ts +0 -3
- package/rubjs/methods/chats/getLiveStatus.js +0 -17
- package/rubjs/methods/chats/getObjectInfoByUsername.d.ts +0 -3
- package/rubjs/methods/chats/getObjectInfoByUsername.js +0 -19
- package/rubjs/methods/chats/getTopChatUsers.d.ts +0 -3
- package/rubjs/methods/chats/getTopChatUsers.js +0 -18
- package/rubjs/methods/chats/index.d.ts +0 -29
- package/rubjs/methods/chats/index.js +0 -62
- package/rubjs/methods/chats/removeFromTopChatUsers.d.ts +0 -3
- package/rubjs/methods/chats/removeFromTopChatUsers.js +0 -17
- package/rubjs/methods/chats/removeJoinLink.d.ts +0 -3
- package/rubjs/methods/chats/removeJoinLink.js +0 -19
- package/rubjs/methods/chats/searchChatMessages.d.ts +0 -3
- package/rubjs/methods/chats/searchChatMessages.js +0 -23
- package/rubjs/methods/chats/searchGlobalMessages.d.ts +0 -3
- package/rubjs/methods/chats/searchGlobalMessages.js +0 -17
- package/rubjs/methods/chats/seenChats.d.ts +0 -3
- package/rubjs/methods/chats/seenChats.js +0 -17
- package/rubjs/methods/chats/sendChatActivity.d.ts +0 -3
- package/rubjs/methods/chats/sendChatActivity.js +0 -19
- package/rubjs/methods/chats/sendLive.d.ts +0 -3
- package/rubjs/methods/chats/sendLive.js +0 -28
- package/rubjs/methods/chats/setActionChat.d.ts +0 -3
- package/rubjs/methods/chats/setActionChat.js +0 -19
- package/rubjs/methods/chats/uploadAvatar.d.ts +0 -3
- package/rubjs/methods/chats/uploadAvatar.js +0 -29
- package/rubjs/methods/contacts/addAddressBook.d.ts +0 -3
- package/rubjs/methods/contacts/addAddressBook.js +0 -17
- package/rubjs/methods/contacts/deleteContact.d.ts +0 -3
- package/rubjs/methods/contacts/deleteContact.js +0 -17
- package/rubjs/methods/contacts/getContacts.d.ts +0 -3
- package/rubjs/methods/contacts/getContacts.js +0 -17
- package/rubjs/methods/contacts/getContactsLastOnline.d.ts +0 -3
- package/rubjs/methods/contacts/getContactsLastOnline.js +0 -17
- package/rubjs/methods/contacts/getContactsUpdates.d.ts +0 -3
- package/rubjs/methods/contacts/getContactsUpdates.js +0 -17
- package/rubjs/methods/contacts/index.d.ts +0 -7
- package/rubjs/methods/contacts/index.js +0 -18
- package/rubjs/methods/contacts/resetContacts.d.ts +0 -3
- package/rubjs/methods/contacts/resetContacts.js +0 -18
- package/rubjs/methods/extras/banMember.d.ts +0 -3
- package/rubjs/methods/extras/banMember.js +0 -20
- package/rubjs/methods/extras/getInfo.d.ts +0 -3
- package/rubjs/methods/extras/getInfo.js +0 -26
- package/rubjs/methods/extras/getObjectByUsername.d.ts +0 -3
- package/rubjs/methods/extras/getObjectByUsername.js +0 -19
- package/rubjs/methods/extras/getProfileLinkItems.d.ts +0 -3
- package/rubjs/methods/extras/getProfileLinkItems.js +0 -17
- package/rubjs/methods/extras/getRelatedObjects.d.ts +0 -3
- package/rubjs/methods/extras/getRelatedObjects.js +0 -17
- package/rubjs/methods/extras/getTranscription.d.ts +0 -3
- package/rubjs/methods/extras/getTranscription.js +0 -20
- package/rubjs/methods/extras/index.d.ts +0 -13
- package/rubjs/methods/extras/index.js +0 -30
- package/rubjs/methods/extras/join.d.ts +0 -3
- package/rubjs/methods/extras/join.js +0 -22
- package/rubjs/methods/extras/leaveChat.d.ts +0 -3
- package/rubjs/methods/extras/leaveChat.js +0 -20
- package/rubjs/methods/extras/reportObject.d.ts +0 -14
- package/rubjs/methods/extras/reportObject.js +0 -32
- package/rubjs/methods/extras/searchGlobalObjects.d.ts +0 -3
- package/rubjs/methods/extras/searchGlobalObjects.js +0 -17
- package/rubjs/methods/extras/transcribeVoice.d.ts +0 -3
- package/rubjs/methods/extras/transcribeVoice.js +0 -17
- package/rubjs/methods/extras/userIsAdmin.d.ts +0 -3
- package/rubjs/methods/extras/userIsAdmin.js +0 -29
- package/rubjs/methods/gif/addToMyGifSet.d.ts +0 -3
- package/rubjs/methods/gif/addToMyGifSet.js +0 -17
- package/rubjs/methods/gif/getMyGifSet.d.ts +0 -3
- package/rubjs/methods/gif/getMyGifSet.js +0 -17
- package/rubjs/methods/gif/index.d.ts +0 -4
- package/rubjs/methods/gif/index.js +0 -12
- package/rubjs/methods/gif/removeFromMyGifSet.d.ts +0 -3
- package/rubjs/methods/gif/removeFromMyGifSet.js +0 -17
- package/rubjs/methods/groups/addGroup.d.ts +0 -3
- package/rubjs/methods/groups/addGroup.js +0 -19
- package/rubjs/methods/groups/addGroupMembers.d.ts +0 -3
- package/rubjs/methods/groups/addGroupMembers.js +0 -19
- package/rubjs/methods/groups/banGroupMember.d.ts +0 -3
- package/rubjs/methods/groups/banGroupMember.js +0 -23
- package/rubjs/methods/groups/createGroupVoiceChat.d.ts +0 -3
- package/rubjs/methods/groups/createGroupVoiceChat.js +0 -17
- package/rubjs/methods/groups/deleteNoAccessGroupChat.d.ts +0 -3
- package/rubjs/methods/groups/deleteNoAccessGroupChat.js +0 -17
- package/rubjs/methods/groups/discardGroupVoiceChat.d.ts +0 -3
- package/rubjs/methods/groups/discardGroupVoiceChat.js +0 -20
- package/rubjs/methods/groups/editGroupInfo.d.ts +0 -6
- package/rubjs/methods/groups/editGroupInfo.js +0 -51
- package/rubjs/methods/groups/getBannedGroupMembers.d.ts +0 -3
- package/rubjs/methods/groups/getBannedGroupMembers.js +0 -17
- package/rubjs/methods/groups/getGroupAdminAccessList.d.ts +0 -3
- package/rubjs/methods/groups/getGroupAdminAccessList.js +0 -20
- package/rubjs/methods/groups/getGroupAdminMembers.d.ts +0 -3
- package/rubjs/methods/groups/getGroupAdminMembers.js +0 -17
- package/rubjs/methods/groups/getGroupAllMembers.d.ts +0 -3
- package/rubjs/methods/groups/getGroupAllMembers.js +0 -21
- package/rubjs/methods/groups/getGroupDefaultAccess.d.ts +0 -3
- package/rubjs/methods/groups/getGroupDefaultAccess.js +0 -17
- package/rubjs/methods/groups/getGroupInfo.d.ts +0 -3
- package/rubjs/methods/groups/getGroupInfo.js +0 -17
- package/rubjs/methods/groups/getGroupLink.d.ts +0 -3
- package/rubjs/methods/groups/getGroupLink.js +0 -17
- package/rubjs/methods/groups/getGroupMentionList.d.ts +0 -3
- package/rubjs/methods/groups/getGroupMentionList.js +0 -20
- package/rubjs/methods/groups/getGroupOnlineCount.d.ts +0 -3
- package/rubjs/methods/groups/getGroupOnlineCount.js +0 -17
- package/rubjs/methods/groups/getGroupVoiceChatUpdates.d.ts +0 -3
- package/rubjs/methods/groups/getGroupVoiceChatUpdates.js +0 -21
- package/rubjs/methods/groups/groupPreviewByJoinLink.d.ts +0 -3
- package/rubjs/methods/groups/groupPreviewByJoinLink.js +0 -19
- package/rubjs/methods/groups/index.d.ts +0 -28
- package/rubjs/methods/groups/index.js +0 -60
- package/rubjs/methods/groups/joinGroup.d.ts +0 -3
- package/rubjs/methods/groups/joinGroup.js +0 -19
- package/rubjs/methods/groups/leaveGroup.d.ts +0 -3
- package/rubjs/methods/groups/leaveGroup.js +0 -17
- package/rubjs/methods/groups/leaveGroupVoiceChat.d.ts +0 -3
- package/rubjs/methods/groups/leaveGroupVoiceChat.js +0 -20
- package/rubjs/methods/groups/removeGroup.d.ts +0 -3
- package/rubjs/methods/groups/removeGroup.js +0 -17
- package/rubjs/methods/groups/seenGroupMessages.d.ts +0 -3
- package/rubjs/methods/groups/seenGroupMessages.js +0 -21
- package/rubjs/methods/groups/setGroupAdmin.d.ts +0 -5
- package/rubjs/methods/groups/setGroupAdmin.js +0 -26
- package/rubjs/methods/groups/setGroupDefaultAccess.d.ts +0 -4
- package/rubjs/methods/groups/setGroupDefaultAccess.js +0 -22
- package/rubjs/methods/groups/setGroupLink.d.ts +0 -3
- package/rubjs/methods/groups/setGroupLink.js +0 -17
- package/rubjs/methods/groups/setGroupVoiceChatSetting.d.ts +0 -3
- package/rubjs/methods/groups/setGroupVoiceChatSetting.js +0 -26
- package/rubjs/methods/index.d.ts +0 -195
- package/rubjs/methods/index.js +0 -929
- package/rubjs/methods/messages/actionOnMessageReaction.d.ts +0 -3
- package/rubjs/methods/messages/actionOnMessageReaction.js +0 -25
- package/rubjs/methods/messages/createPoll.d.ts +0 -3
- package/rubjs/methods/messages/createPoll.js +0 -35
- package/rubjs/methods/messages/deleteMessages.d.ts +0 -3
- package/rubjs/methods/messages/deleteMessages.js +0 -26
- package/rubjs/methods/messages/editMessage.d.ts +0 -3
- package/rubjs/methods/messages/editMessage.js +0 -23
- package/rubjs/methods/messages/forwardMessages.d.ts +0 -3
- package/rubjs/methods/messages/forwardMessages.js +0 -31
- package/rubjs/methods/messages/getMessageShareUrl.d.ts +0 -3
- package/rubjs/methods/messages/getMessageShareUrl.js +0 -17
- package/rubjs/methods/messages/getMessages.d.ts +0 -3
- package/rubjs/methods/messages/getMessages.js +0 -23
- package/rubjs/methods/messages/getMessagesByID.d.ts +0 -3
- package/rubjs/methods/messages/getMessagesByID.js +0 -22
- package/rubjs/methods/messages/getMessagesInterval.d.ts +0 -3
- package/rubjs/methods/messages/getMessagesInterval.js +0 -20
- package/rubjs/methods/messages/getMessagesUpdates.d.ts +0 -3
- package/rubjs/methods/messages/getMessagesUpdates.js +0 -17
- package/rubjs/methods/messages/getPollOptionVoters.d.ts +0 -3
- package/rubjs/methods/messages/getPollOptionVoters.js +0 -21
- package/rubjs/methods/messages/getPollStatus.d.ts +0 -3
- package/rubjs/methods/messages/getPollStatus.js +0 -17
- package/rubjs/methods/messages/index.d.ts +0 -26
- package/rubjs/methods/messages/index.js +0 -56
- package/rubjs/methods/messages/requestSendFile.d.ts +0 -4
- package/rubjs/methods/messages/requestSendFile.js +0 -22
- package/rubjs/methods/messages/sendDocument.d.ts +0 -3
- package/rubjs/methods/messages/sendDocument.js +0 -17
- package/rubjs/methods/messages/sendGif.d.ts +0 -3
- package/rubjs/methods/messages/sendGif.js +0 -17
- package/rubjs/methods/messages/sendMessage.d.ts +0 -3
- package/rubjs/methods/messages/sendMessage.js +0 -146
- package/rubjs/methods/messages/sendMusic.d.ts +0 -3
- package/rubjs/methods/messages/sendMusic.js +0 -17
- package/rubjs/methods/messages/sendPhoto.d.ts +0 -3
- package/rubjs/methods/messages/sendPhoto.js +0 -17
- package/rubjs/methods/messages/sendSticker.d.ts +0 -3
- package/rubjs/methods/messages/sendSticker.js +0 -17
- package/rubjs/methods/messages/sendText.d.ts +0 -3
- package/rubjs/methods/messages/sendText.js +0 -17
- package/rubjs/methods/messages/sendVideo.d.ts +0 -3
- package/rubjs/methods/messages/sendVideo.js +0 -17
- package/rubjs/methods/messages/sendVideoMessage.d.ts +0 -3
- package/rubjs/methods/messages/sendVideoMessage.js +0 -17
- package/rubjs/methods/messages/sendVoice.d.ts +0 -3
- package/rubjs/methods/messages/sendVoice.js +0 -17
- package/rubjs/methods/messages/setPinMessage.d.ts +0 -3
- package/rubjs/methods/messages/setPinMessage.js +0 -23
- package/rubjs/methods/messages/votePoll.d.ts +0 -3
- package/rubjs/methods/messages/votePoll.js +0 -17
- package/rubjs/methods/settings/changePassword.d.ts +0 -3
- package/rubjs/methods/settings/changePassword.js +0 -17
- package/rubjs/methods/settings/checkTwoStepPasscode.d.ts +0 -3
- package/rubjs/methods/settings/checkTwoStepPasscode.js +0 -17
- package/rubjs/methods/settings/deleteFolder.d.ts +0 -3
- package/rubjs/methods/settings/deleteFolder.js +0 -17
- package/rubjs/methods/settings/getBlockedUsers.d.ts +0 -3
- package/rubjs/methods/settings/getBlockedUsers.js +0 -17
- package/rubjs/methods/settings/getFolders.d.ts +0 -3
- package/rubjs/methods/settings/getFolders.js +0 -17
- package/rubjs/methods/settings/getMySessions.d.ts +0 -3
- package/rubjs/methods/settings/getMySessions.js +0 -17
- package/rubjs/methods/settings/getPrivacySetting.d.ts +0 -3
- package/rubjs/methods/settings/getPrivacySetting.js +0 -17
- package/rubjs/methods/settings/getSuggestedFolders.d.ts +0 -3
- package/rubjs/methods/settings/getSuggestedFolders.js +0 -17
- package/rubjs/methods/settings/getTwoPasscodeStatus.d.ts +0 -3
- package/rubjs/methods/settings/getTwoPasscodeStatus.js +0 -17
- package/rubjs/methods/settings/index.d.ts +0 -19
- package/rubjs/methods/settings/index.js +0 -42
- package/rubjs/methods/settings/requestRecoveryEmail.d.ts +0 -3
- package/rubjs/methods/settings/requestRecoveryEmail.js +0 -20
- package/rubjs/methods/settings/setSetting.d.ts +0 -5
- package/rubjs/methods/settings/setSetting.js +0 -50
- package/rubjs/methods/settings/setupTwoStepVerification.d.ts +0 -3
- package/rubjs/methods/settings/setupTwoStepVerification.js +0 -21
- package/rubjs/methods/settings/terminateOtherSessions.d.ts +0 -3
- package/rubjs/methods/settings/terminateOtherSessions.js +0 -18
- package/rubjs/methods/settings/terminateSession.d.ts +0 -3
- package/rubjs/methods/settings/terminateSession.js +0 -17
- package/rubjs/methods/settings/turnOffTwoStep.d.ts +0 -3
- package/rubjs/methods/settings/turnOffTwoStep.js +0 -18
- package/rubjs/methods/settings/updateProfile.d.ts +0 -3
- package/rubjs/methods/settings/updateProfile.js +0 -30
- package/rubjs/methods/settings/updateUsername.d.ts +0 -3
- package/rubjs/methods/settings/updateUsername.js +0 -17
- package/rubjs/methods/settings/verifyRecoveryEmail.d.ts +0 -3
- package/rubjs/methods/settings/verifyRecoveryEmail.js +0 -17
- package/rubjs/methods/stickers/actionOnStickerSet.d.ts +0 -3
- package/rubjs/methods/stickers/actionOnStickerSet.js +0 -19
- package/rubjs/methods/stickers/getMyStickerSets.d.ts +0 -3
- package/rubjs/methods/stickers/getMyStickerSets.js +0 -17
- package/rubjs/methods/stickers/getStickerSetByID.d.ts +0 -3
- package/rubjs/methods/stickers/getStickerSetByID.js +0 -17
- package/rubjs/methods/stickers/getStickersByEmoji.d.ts +0 -3
- package/rubjs/methods/stickers/getStickersByEmoji.js +0 -17
- package/rubjs/methods/stickers/getStickersBySetIds.d.ts +0 -3
- package/rubjs/methods/stickers/getStickersBySetIds.js +0 -19
- package/rubjs/methods/stickers/getTrendStickerSets.d.ts +0 -3
- package/rubjs/methods/stickers/getTrendStickerSets.js +0 -17
- package/rubjs/methods/stickers/index.d.ts +0 -8
- package/rubjs/methods/stickers/index.js +0 -20
- package/rubjs/methods/stickers/searchStickers.d.ts +0 -3
- package/rubjs/methods/stickers/searchStickers.js +0 -17
- package/rubjs/methods/users/checkUserUsername.d.ts +0 -3
- package/rubjs/methods/users/checkUserUsername.js +0 -17
- package/rubjs/methods/users/deleteUserChat.d.ts +0 -3
- package/rubjs/methods/users/deleteUserChat.js +0 -20
- package/rubjs/methods/users/getMe.d.ts +0 -3
- package/rubjs/methods/users/getMe.js +0 -17
- package/rubjs/methods/users/getUserInfo.d.ts +0 -4
- package/rubjs/methods/users/getUserInfo.js +0 -18
- package/rubjs/methods/users/index.d.ts +0 -6
- package/rubjs/methods/users/index.js +0 -16
- package/rubjs/methods/users/setBlockUser.d.ts +0 -3
- package/rubjs/methods/users/setBlockUser.js +0 -19
- package/rubjs/methods/utilities/download.d.ts +0 -4
- package/rubjs/methods/utilities/download.js +0 -17
- package/rubjs/methods/utilities/downloadProfilePicture.d.ts +0 -3
- package/rubjs/methods/utilities/downloadProfilePicture.js +0 -27
- package/rubjs/methods/utilities/get.d.ts +0 -4
- package/rubjs/methods/utilities/get.js +0 -21
- package/rubjs/methods/utilities/index.d.ts +0 -8
- package/rubjs/methods/utilities/index.js +0 -20
- package/rubjs/methods/utilities/post.d.ts +0 -4
- package/rubjs/methods/utilities/post.js +0 -21
- package/rubjs/methods/utilities/run.d.ts +0 -3
- package/rubjs/methods/utilities/run.js +0 -24
- package/rubjs/methods/utilities/start.d.ts +0 -3
- package/rubjs/methods/utilities/start.js +0 -70
- package/rubjs/methods/utilities/thumbnail.d.ts +0 -6
- package/rubjs/methods/utilities/thumbnail.js +0 -75
- package/rubjs/network/index.d.ts +0 -38
- package/rubjs/network/index.js +0 -338
- package/rubjs/parser/index.d.ts +0 -25
- package/rubjs/parser/index.js +0 -112
- package/rubjs/session/index.d.ts +0 -18
- package/rubjs/session/index.js +0 -57
- package/rubjs/types/auth.d.ts +0 -40
- package/rubjs/types/auth.js +0 -2
- package/rubjs/types/chats.d.ts +0 -79
- package/rubjs/types/chats.js +0 -2
- package/rubjs/types/decorators.d.ts +0 -168
- package/rubjs/types/decorators.js +0 -2
- package/rubjs/types/groups.d.ts +0 -129
- package/rubjs/types/groups.js +0 -2
- package/rubjs/types/index.d.ts +0 -8
- package/rubjs/types/index.js +0 -53
- package/rubjs/types/message.d.ts +0 -25
- package/rubjs/types/message.js +0 -61
- package/rubjs/types/messages.d.ts +0 -176
- package/rubjs/types/messages.js +0 -2
- package/rubjs/types/users.d.ts +0 -64
- package/rubjs/types/users.js +0 -2
- package/rubjs/utils/filters.d.ts +0 -29
- package/rubjs/utils/filters.js +0 -123
- package/rubjs/utils/index.d.ts +0 -3
- package/rubjs/utils/index.js +0 -10
- package/rubjs/utils/utils.d.ts +0 -10
- package/rubjs/utils/utils.js +0 -12
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getGroupAdminMembers(group_guid, start_id) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("getGroupAdminMembers", { group_guid, start_id });
|
15
|
-
});
|
16
|
-
}
|
17
|
-
exports.default = getGroupAdminMembers;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getGroupAllMembers(group_guid, search_text, start_id) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("getGroupAllMembers", {
|
15
|
-
group_guid,
|
16
|
-
search_text,
|
17
|
-
start_id,
|
18
|
-
});
|
19
|
-
});
|
20
|
-
}
|
21
|
-
exports.default = getGroupAllMembers;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getGroupDefaultAccess(group_guid) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("getGroupDefaultAccess", { group_guid });
|
15
|
-
});
|
16
|
-
}
|
17
|
-
exports.default = getGroupDefaultAccess;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getGroupInfo(group_guid) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("getGroupInfo", { group_guid });
|
15
|
-
});
|
16
|
-
}
|
17
|
-
exports.default = getGroupInfo;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getGroupLink(group_guid) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder('getGroupLink', { group_guid });
|
15
|
-
});
|
16
|
-
}
|
17
|
-
exports.default = getGroupLink;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getGroupMentionList(group_guid, search_mention) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("getGroupMentionList", {
|
15
|
-
group_guid,
|
16
|
-
search_mention,
|
17
|
-
});
|
18
|
-
});
|
19
|
-
}
|
20
|
-
exports.default = getGroupMentionList;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getGroupOnlineCount(group_guid) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("getGroupOnlineCount", { group_guid });
|
15
|
-
});
|
16
|
-
}
|
17
|
-
exports.default = getGroupOnlineCount;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getGroupVoiceChatUpdates(group_guid_1, voice_chat_id_1) {
|
13
|
-
return __awaiter(this, arguments, void 0, function* (group_guid, voice_chat_id, state = Math.round(Date.now() / 1000) - 150) {
|
14
|
-
return yield this.builder("getGroupVoiceChatUpdates", {
|
15
|
-
group_guid,
|
16
|
-
voice_chat_id,
|
17
|
-
state,
|
18
|
-
});
|
19
|
-
});
|
20
|
-
}
|
21
|
-
exports.default = getGroupVoiceChatUpdates;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function groupPreviewByJoinLink(link) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
if (link.includes("/"))
|
15
|
-
link = link.split("/")[-1];
|
16
|
-
return yield this.builder("groupPreviewByJoinLink", { hash_link: link });
|
17
|
-
});
|
18
|
-
}
|
19
|
-
exports.default = groupPreviewByJoinLink;
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import addGroup from "./addGroup";
|
2
|
-
import addGroupMembers from "./addGroupMembers";
|
3
|
-
import banGroupMember from "./banGroupMember";
|
4
|
-
import createGroupVoiceChat from "./createGroupVoiceChat";
|
5
|
-
import deleteNoAccessGroupChat from "./deleteNoAccessGroupChat";
|
6
|
-
import discardGroupVoiceChat from "./discardGroupVoiceChat";
|
7
|
-
import editGroupInfo from "./editGroupInfo";
|
8
|
-
import getBannedGroupMembers from "./getBannedGroupMembers";
|
9
|
-
import getGroupAdminAccessList from "./getGroupAdminAccessList";
|
10
|
-
import getGroupAdminMembers from "./getGroupAdminMembers";
|
11
|
-
import getGroupAllMembers from "./getGroupAllMembers";
|
12
|
-
import getGroupDefaultAccess from "./getGroupDefaultAccess";
|
13
|
-
import getGroupInfo from "./getGroupInfo";
|
14
|
-
import getGroupLink from "./getGroupLink";
|
15
|
-
import getGroupMentionList from "./getGroupMentionList";
|
16
|
-
import getGroupOnlineCount from "./getGroupOnlineCount";
|
17
|
-
import getGroupVoiceChatUpdates from "./getGroupVoiceChatUpdates";
|
18
|
-
import groupPreviewByJoinLink from "./groupPreviewByJoinLink";
|
19
|
-
import joinGroup from "./joinGroup";
|
20
|
-
import leaveGroup from "./leaveGroup";
|
21
|
-
import leaveGroupVoiceChat from "./leaveGroupVoiceChat";
|
22
|
-
import removeGroup from "./removeGroup";
|
23
|
-
import seenGroupMessages from "./seenGroupMessages";
|
24
|
-
import setGroupAdmin from "./setGroupAdmin";
|
25
|
-
import setGroupDefaultAccess from "./setGroupDefaultAccess";
|
26
|
-
import setGroupLink from "./setGroupLink";
|
27
|
-
import setGroupVoiceChatSetting from "./setGroupVoiceChatSetting";
|
28
|
-
export { addGroup, addGroupMembers, banGroupMember, seenGroupMessages, discardGroupVoiceChat, createGroupVoiceChat, deleteNoAccessGroupChat, editGroupInfo, getBannedGroupMembers, getGroupAdminAccessList, getGroupAdminMembers, getGroupAllMembers, getGroupDefaultAccess, getGroupInfo, getGroupLink, getGroupOnlineCount, getGroupMentionList, getGroupVoiceChatUpdates, groupPreviewByJoinLink, joinGroup, leaveGroup, leaveGroupVoiceChat, removeGroup, setGroupAdmin, setGroupDefaultAccess, setGroupLink, setGroupVoiceChatSetting, };
|
@@ -1,60 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.setGroupVoiceChatSetting = exports.setGroupLink = exports.setGroupDefaultAccess = exports.setGroupAdmin = exports.removeGroup = exports.leaveGroupVoiceChat = exports.leaveGroup = exports.joinGroup = exports.groupPreviewByJoinLink = exports.getGroupVoiceChatUpdates = exports.getGroupMentionList = exports.getGroupOnlineCount = exports.getGroupLink = exports.getGroupInfo = exports.getGroupDefaultAccess = exports.getGroupAllMembers = exports.getGroupAdminMembers = exports.getGroupAdminAccessList = exports.getBannedGroupMembers = exports.editGroupInfo = exports.deleteNoAccessGroupChat = exports.createGroupVoiceChat = exports.discardGroupVoiceChat = exports.seenGroupMessages = exports.banGroupMember = exports.addGroupMembers = exports.addGroup = void 0;
|
7
|
-
const addGroup_1 = __importDefault(require("./addGroup"));
|
8
|
-
exports.addGroup = addGroup_1.default;
|
9
|
-
const addGroupMembers_1 = __importDefault(require("./addGroupMembers"));
|
10
|
-
exports.addGroupMembers = addGroupMembers_1.default;
|
11
|
-
const banGroupMember_1 = __importDefault(require("./banGroupMember"));
|
12
|
-
exports.banGroupMember = banGroupMember_1.default;
|
13
|
-
const createGroupVoiceChat_1 = __importDefault(require("./createGroupVoiceChat"));
|
14
|
-
exports.createGroupVoiceChat = createGroupVoiceChat_1.default;
|
15
|
-
const deleteNoAccessGroupChat_1 = __importDefault(require("./deleteNoAccessGroupChat"));
|
16
|
-
exports.deleteNoAccessGroupChat = deleteNoAccessGroupChat_1.default;
|
17
|
-
const discardGroupVoiceChat_1 = __importDefault(require("./discardGroupVoiceChat"));
|
18
|
-
exports.discardGroupVoiceChat = discardGroupVoiceChat_1.default;
|
19
|
-
const editGroupInfo_1 = __importDefault(require("./editGroupInfo"));
|
20
|
-
exports.editGroupInfo = editGroupInfo_1.default;
|
21
|
-
const getBannedGroupMembers_1 = __importDefault(require("./getBannedGroupMembers"));
|
22
|
-
exports.getBannedGroupMembers = getBannedGroupMembers_1.default;
|
23
|
-
const getGroupAdminAccessList_1 = __importDefault(require("./getGroupAdminAccessList"));
|
24
|
-
exports.getGroupAdminAccessList = getGroupAdminAccessList_1.default;
|
25
|
-
const getGroupAdminMembers_1 = __importDefault(require("./getGroupAdminMembers"));
|
26
|
-
exports.getGroupAdminMembers = getGroupAdminMembers_1.default;
|
27
|
-
const getGroupAllMembers_1 = __importDefault(require("./getGroupAllMembers"));
|
28
|
-
exports.getGroupAllMembers = getGroupAllMembers_1.default;
|
29
|
-
const getGroupDefaultAccess_1 = __importDefault(require("./getGroupDefaultAccess"));
|
30
|
-
exports.getGroupDefaultAccess = getGroupDefaultAccess_1.default;
|
31
|
-
const getGroupInfo_1 = __importDefault(require("./getGroupInfo"));
|
32
|
-
exports.getGroupInfo = getGroupInfo_1.default;
|
33
|
-
const getGroupLink_1 = __importDefault(require("./getGroupLink"));
|
34
|
-
exports.getGroupLink = getGroupLink_1.default;
|
35
|
-
const getGroupMentionList_1 = __importDefault(require("./getGroupMentionList"));
|
36
|
-
exports.getGroupMentionList = getGroupMentionList_1.default;
|
37
|
-
const getGroupOnlineCount_1 = __importDefault(require("./getGroupOnlineCount"));
|
38
|
-
exports.getGroupOnlineCount = getGroupOnlineCount_1.default;
|
39
|
-
const getGroupVoiceChatUpdates_1 = __importDefault(require("./getGroupVoiceChatUpdates"));
|
40
|
-
exports.getGroupVoiceChatUpdates = getGroupVoiceChatUpdates_1.default;
|
41
|
-
const groupPreviewByJoinLink_1 = __importDefault(require("./groupPreviewByJoinLink"));
|
42
|
-
exports.groupPreviewByJoinLink = groupPreviewByJoinLink_1.default;
|
43
|
-
const joinGroup_1 = __importDefault(require("./joinGroup"));
|
44
|
-
exports.joinGroup = joinGroup_1.default;
|
45
|
-
const leaveGroup_1 = __importDefault(require("./leaveGroup"));
|
46
|
-
exports.leaveGroup = leaveGroup_1.default;
|
47
|
-
const leaveGroupVoiceChat_1 = __importDefault(require("./leaveGroupVoiceChat"));
|
48
|
-
exports.leaveGroupVoiceChat = leaveGroupVoiceChat_1.default;
|
49
|
-
const removeGroup_1 = __importDefault(require("./removeGroup"));
|
50
|
-
exports.removeGroup = removeGroup_1.default;
|
51
|
-
const seenGroupMessages_1 = __importDefault(require("./seenGroupMessages"));
|
52
|
-
exports.seenGroupMessages = seenGroupMessages_1.default;
|
53
|
-
const setGroupAdmin_1 = __importDefault(require("./setGroupAdmin"));
|
54
|
-
exports.setGroupAdmin = setGroupAdmin_1.default;
|
55
|
-
const setGroupDefaultAccess_1 = __importDefault(require("./setGroupDefaultAccess"));
|
56
|
-
exports.setGroupDefaultAccess = setGroupDefaultAccess_1.default;
|
57
|
-
const setGroupLink_1 = __importDefault(require("./setGroupLink"));
|
58
|
-
exports.setGroupLink = setGroupLink_1.default;
|
59
|
-
const setGroupVoiceChatSetting_1 = __importDefault(require("./setGroupVoiceChatSetting"));
|
60
|
-
exports.setGroupVoiceChatSetting = setGroupVoiceChatSetting_1.default;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function joinGroup(link) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
if (link.includes("/"))
|
15
|
-
link = link.split("/")[-1];
|
16
|
-
return yield this.builder("joinGroup", { hash_link: link });
|
17
|
-
});
|
18
|
-
}
|
19
|
-
exports.default = joinGroup;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function leaveGroup(group_guid) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("leaveGroup", { group_guid });
|
15
|
-
});
|
16
|
-
}
|
17
|
-
exports.default = leaveGroup;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function leaveGroupVoiceChat(group_guid, voice_chat_id) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("leaveGroupVoiceChat", {
|
15
|
-
group_guid,
|
16
|
-
voice_chat_id,
|
17
|
-
});
|
18
|
-
});
|
19
|
-
}
|
20
|
-
exports.default = leaveGroupVoiceChat;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function removeGroup(group_guid) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("removeGroup", { group_guid });
|
15
|
-
});
|
16
|
-
}
|
17
|
-
exports.default = removeGroup;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function seenGroupMessages(group_guid, min_id, max_id) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("seenGroupMessages", {
|
15
|
-
group_guid,
|
16
|
-
min_id,
|
17
|
-
max_id,
|
18
|
-
});
|
19
|
-
});
|
20
|
-
}
|
21
|
-
exports.default = seenGroupMessages;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import Client from "../..";
|
2
|
-
type AccessType = "SetAdmin" | "BanMember" | "ChangeInfo" | "PinMessages" | "SetJoinLink" | "SetMemberAccess" | "DeleteGlobalAllMessages";
|
3
|
-
type ActionType = "SetAdmin" | "UnsetAdmin";
|
4
|
-
declare function setGroupAdmin(this: Client, group_guid: string, member_guid: string, action: ActionType, access_list: AccessType[]): Promise<any>;
|
5
|
-
export default setGroupAdmin;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function setGroupAdmin(group_guid, member_guid, action, access_list) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
if (!["SetAdmin", "UnsetAdmin"].includes(action))
|
15
|
-
throw new Error(`${action} argument can only be in ["SetAdmin", "UnsetAdmin"].`);
|
16
|
-
if (typeof access_list === "string")
|
17
|
-
access_list = [access_list];
|
18
|
-
return yield this.builder("setGroupAdmin", {
|
19
|
-
group_guid,
|
20
|
-
member_guid,
|
21
|
-
action,
|
22
|
-
access_list,
|
23
|
-
});
|
24
|
-
});
|
25
|
-
}
|
26
|
-
exports.default = setGroupAdmin;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import Client from "../..";
|
2
|
-
type AccessType = "ChangeInfo" | "PinMessages" | "DeleteGlobalAllMessages" | "BanMember" | "SetAdmin" | "SetJoinLink" | "SetMemberAccess" | "ViewMembers" | "ViewAdmins" | "SendMessages" | "AddMember" | "ViewInfo" | "ViewMessages" | "DeleteLocalMessages" | "EditMyMessages" | "DeleteGlobalMyMessages";
|
3
|
-
declare function setGroupDefaultAccess(this: Client, group_guid: string, access_list: AccessType[]): Promise<any>;
|
4
|
-
export default setGroupDefaultAccess;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function setGroupDefaultAccess(group_guid, access_list) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
if (typeof access_list === "string")
|
15
|
-
access_list = [access_list];
|
16
|
-
return yield this.builder("setGroupDefaultAccess", {
|
17
|
-
group_guid,
|
18
|
-
access_list,
|
19
|
-
});
|
20
|
-
});
|
21
|
-
}
|
22
|
-
exports.default = setGroupDefaultAccess;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function setGroupLink(group_guid) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
return yield this.builder("setGroupLink", { group_guid });
|
15
|
-
});
|
16
|
-
}
|
17
|
-
exports.default = setGroupLink;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function setGroupVoiceChatSetting(group_guid, voice_chat_id, title) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
let input = {
|
15
|
-
group_guid,
|
16
|
-
voice_chat_id,
|
17
|
-
updated_parameters: [],
|
18
|
-
};
|
19
|
-
if (typeof title === "string") {
|
20
|
-
input.updated_parameters.push("title");
|
21
|
-
input.title = title;
|
22
|
-
}
|
23
|
-
return yield this.builder("setGroupVoiceChatSetting", input);
|
24
|
-
});
|
25
|
-
}
|
26
|
-
exports.default = setGroupVoiceChatSetting;
|