rubjs 2.9.3 → 3.0.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/README.md +32 -25
- package/lib/clients/VoiceChatClient.d.ts +31 -0
- package/lib/clients/VoiceChatClient.js +147 -0
- package/lib/clients/index.d.ts +3 -0
- package/lib/clients/index.js +10 -0
- package/lib/clients/loginClient.d.ts +47 -0
- package/lib/clients/loginClient.js +108 -0
- package/lib/clients/network_login.d.ts +47 -0
- package/lib/clients/network_login.js +137 -0
- package/lib/core/client.d.ts +29 -0
- package/lib/core/client.js +65 -0
- package/lib/core/context/activities.type.d.ts +12 -0
- package/lib/core/context/activities.type.js +18 -0
- package/lib/core/context/chat.type.d.ts +14 -0
- package/lib/core/context/chat.type.js +20 -0
- package/lib/core/context/contextConstructors.d.ts +10 -0
- package/lib/core/context/contextConstructors.js +16 -0
- package/lib/core/context/index.d.ts +5 -0
- package/lib/core/context/index.js +14 -0
- package/lib/core/context/message.type.d.ts +26 -0
- package/lib/core/context/message.type.js +72 -0
- package/lib/core/context/notifications.type.d.ts +14 -0
- package/lib/core/context/notifications.type.js +20 -0
- package/lib/core/crypto.d.ts +12 -0
- package/lib/core/crypto.js +95 -0
- package/lib/core/filters.d.ts +33 -0
- package/lib/core/filters.js +153 -0
- package/lib/core/methods/advanced/builder.d.ts +3 -0
- package/lib/core/methods/advanced/builder.js +30 -0
- package/lib/core/methods/auth/logout.d.ts +3 -0
- package/lib/core/methods/auth/logout.js +6 -0
- package/lib/core/methods/auth/registerDevice.d.ts +3 -0
- package/lib/core/methods/auth/registerDevice.js +47 -0
- package/lib/core/methods/auth/sendCode.d.ts +3 -0
- package/lib/core/methods/auth/sendCode.js +16 -0
- package/lib/core/methods/auth/signIn.d.ts +3 -0
- package/lib/core/methods/auth/signIn.js +13 -0
- package/lib/core/methods/channels/addChannel.d.ts +3 -0
- package/lib/core/methods/channels/addChannel.js +15 -0
- package/lib/core/methods/channels/addChannelMembers.d.ts +3 -0
- package/lib/core/methods/channels/addChannelMembers.js +11 -0
- package/lib/core/methods/channels/banChannelMember.d.ts +3 -0
- package/lib/core/methods/channels/banChannelMember.js +14 -0
- package/lib/core/methods/channels/cancelChangeObjectOwner.d.ts +3 -0
- package/lib/core/methods/channels/cancelChangeObjectOwner.js +6 -0
- package/lib/core/methods/channels/channelPreviewByJoinLink.d.ts +3 -0
- package/lib/core/methods/channels/channelPreviewByJoinLink.js +8 -0
- package/lib/core/methods/channels/checkChannelUsername.d.ts +3 -0
- package/lib/core/methods/channels/checkChannelUsername.js +8 -0
- package/lib/core/methods/channels/createChannelVoiceChat.d.ts +3 -0
- package/lib/core/methods/channels/createChannelVoiceChat.js +6 -0
- package/lib/core/methods/channels/discardChannelVoiceChat.d.ts +3 -0
- package/lib/core/methods/channels/discardChannelVoiceChat.js +9 -0
- package/lib/core/methods/channels/editChannelInfo.d.ts +4 -0
- package/lib/core/methods/channels/editChannelInfo.js +39 -0
- package/lib/core/methods/channels/getBannedChannelMembers.d.ts +3 -0
- package/lib/core/methods/channels/getBannedChannelMembers.js +9 -0
- package/lib/core/methods/channels/getChannelAdminAccessList.d.ts +3 -0
- package/lib/core/methods/channels/getChannelAdminAccessList.js +9 -0
- package/lib/core/methods/channels/getChannelAdminMembers.d.ts +3 -0
- package/lib/core/methods/channels/getChannelAdminMembers.js +9 -0
- package/lib/core/methods/channels/getChannelAllMembers.d.ts +3 -0
- package/lib/core/methods/channels/getChannelAllMembers.js +10 -0
- package/lib/core/methods/channels/getChannelInfo.d.ts +3 -0
- package/lib/core/methods/channels/getChannelInfo.js +6 -0
- package/lib/core/methods/channels/getChannelLink.d.ts +3 -0
- package/lib/core/methods/channels/getChannelLink.js +6 -0
- package/lib/core/methods/channels/getPendingObjectOwner.d.ts +3 -0
- package/lib/core/methods/channels/getPendingObjectOwner.js +6 -0
- package/lib/core/methods/channels/joinChannelAction.d.ts +3 -0
- package/lib/core/methods/channels/joinChannelAction.js +10 -0
- package/lib/core/methods/channels/joinChannelByLink.d.ts +3 -0
- package/lib/core/methods/channels/joinChannelByLink.js +8 -0
- package/lib/core/methods/channels/leaveChannelVoiceChat.d.ts +3 -0
- package/lib/core/methods/channels/leaveChannelVoiceChat.js +9 -0
- package/lib/core/methods/channels/removeChannel.d.ts +3 -0
- package/lib/core/methods/channels/removeChannel.js +6 -0
- package/lib/core/methods/channels/requestChangeObjectOwner.d.ts +3 -0
- package/lib/core/methods/channels/requestChangeObjectOwner.js +9 -0
- package/lib/core/methods/channels/seenChannelMessages.d.ts +3 -0
- package/lib/core/methods/channels/seenChannelMessages.js +10 -0
- package/lib/core/methods/channels/setChannelLink.d.ts +3 -0
- package/lib/core/methods/channels/setChannelLink.js +6 -0
- package/lib/core/methods/channels/setChannelVoiceChatSetting.d.ts +3 -0
- package/lib/core/methods/channels/setChannelVoiceChatSetting.js +15 -0
- package/lib/core/methods/channels/updateChannelUsername.d.ts +3 -0
- package/lib/core/methods/channels/updateChannelUsername.js +9 -0
- package/lib/core/methods/chats/actionOnJoinRequest.d.ts +3 -0
- package/lib/core/methods/chats/actionOnJoinRequest.js +11 -0
- package/lib/core/methods/chats/addLiveComment.d.ts +3 -0
- package/lib/core/methods/chats/addLiveComment.js +6 -0
- package/lib/core/methods/chats/clickMessageUrl.d.ts +3 -0
- package/lib/core/methods/chats/clickMessageUrl.js +6 -0
- package/lib/core/methods/chats/createJoinLink.d.ts +3 -0
- package/lib/core/methods/chats/createJoinLink.js +12 -0
- package/lib/core/methods/chats/deleteAvatar.d.ts +3 -0
- package/lib/core/methods/chats/deleteAvatar.js +6 -0
- package/lib/core/methods/chats/deleteChatHistory.d.ts +3 -0
- package/lib/core/methods/chats/deleteChatHistory.js +9 -0
- package/lib/core/methods/chats/editJoinLink.d.ts +3 -0
- package/lib/core/methods/chats/editJoinLink.js +23 -0
- package/lib/core/methods/chats/getAbsObjects.d.ts +3 -0
- package/lib/core/methods/chats/getAbsObjects.js +8 -0
- package/lib/core/methods/chats/getAvatars.d.ts +3 -0
- package/lib/core/methods/chats/getAvatars.js +6 -0
- package/lib/core/methods/chats/getChatReaction.d.ts +3 -0
- package/lib/core/methods/chats/getChatReaction.js +6 -0
- package/lib/core/methods/chats/getChats.d.ts +3 -0
- package/lib/core/methods/chats/getChats.js +6 -0
- package/lib/core/methods/chats/getChatsUpdates.d.ts +3 -0
- package/lib/core/methods/chats/getChatsUpdates.js +6 -0
- package/lib/core/methods/chats/getJoinLinks.d.ts +3 -0
- package/lib/core/methods/chats/getJoinLinks.js +6 -0
- package/lib/core/methods/chats/getJoinRequests.d.ts +3 -0
- package/lib/core/methods/chats/getJoinRequests.js +6 -0
- package/lib/core/methods/chats/getLinkFromAppUrl.d.ts +3 -0
- package/lib/core/methods/chats/getLinkFromAppUrl.js +6 -0
- package/lib/core/methods/chats/getLiveComments.d.ts +3 -0
- package/lib/core/methods/chats/getLiveComments.js +6 -0
- package/lib/core/methods/chats/getLivePlayUrl.d.ts +3 -0
- package/lib/core/methods/chats/getLivePlayUrl.js +6 -0
- package/lib/core/methods/chats/getLiveStatus.d.ts +3 -0
- package/lib/core/methods/chats/getLiveStatus.js +6 -0
- package/lib/core/methods/chats/getObjectInfoByUsername.d.ts +3 -0
- package/lib/core/methods/chats/getObjectInfoByUsername.js +8 -0
- package/lib/core/methods/chats/getTopChatUsers.d.ts +3 -0
- package/lib/core/methods/chats/getTopChatUsers.js +7 -0
- package/lib/core/methods/chats/removeFromTopChatUsers.d.ts +3 -0
- package/lib/core/methods/chats/removeFromTopChatUsers.js +6 -0
- package/lib/core/methods/chats/removeJoinLink.d.ts +3 -0
- package/lib/core/methods/chats/removeJoinLink.js +8 -0
- package/lib/core/methods/chats/searchChatMessages.d.ts +3 -0
- package/lib/core/methods/chats/searchChatMessages.js +14 -0
- package/lib/core/methods/chats/searchGlobalMessages.d.ts +3 -0
- package/lib/core/methods/chats/searchGlobalMessages.js +6 -0
- package/lib/core/methods/chats/seenChats.d.ts +3 -0
- package/lib/core/methods/chats/seenChats.js +6 -0
- package/lib/core/methods/chats/sendChatActivity.d.ts +3 -0
- package/lib/core/methods/chats/sendChatActivity.js +10 -0
- package/lib/core/methods/chats/sendLive.d.ts +3 -0
- package/lib/core/methods/chats/sendLive.js +17 -0
- package/lib/core/methods/chats/setActionChat.d.ts +3 -0
- package/lib/core/methods/chats/setActionChat.js +10 -0
- package/lib/core/methods/chats/uploadAvatar.d.ts +3 -0
- package/lib/core/methods/chats/uploadAvatar.js +14 -0
- package/lib/core/methods/contacts/addAddressBook.d.ts +3 -0
- package/lib/core/methods/contacts/addAddressBook.js +6 -0
- package/lib/core/methods/contacts/deleteContact.d.ts +3 -0
- package/lib/core/methods/contacts/deleteContact.js +6 -0
- package/lib/core/methods/contacts/getContacts.d.ts +3 -0
- package/lib/core/methods/contacts/getContacts.js +6 -0
- package/lib/core/methods/contacts/getContactsLastOnline.d.ts +3 -0
- package/lib/core/methods/contacts/getContactsLastOnline.js +6 -0
- package/lib/core/methods/contacts/getContactsUpdates.d.ts +3 -0
- package/lib/core/methods/contacts/getContactsUpdates.js +6 -0
- package/lib/core/methods/contacts/resetContacts.d.ts +3 -0
- package/lib/core/methods/contacts/resetContacts.js +7 -0
- package/lib/core/methods/extras/banMember.d.ts +3 -0
- package/lib/core/methods/extras/banMember.js +9 -0
- package/lib/core/methods/extras/deleteMessagebyCount.d.ts +3 -0
- package/lib/core/methods/extras/deleteMessagebyCount.js +19 -0
- package/lib/core/methods/extras/getInfo.d.ts +3 -0
- package/lib/core/methods/extras/getInfo.js +15 -0
- package/lib/core/methods/extras/getObjectByUsername.d.ts +3 -0
- package/lib/core/methods/extras/getObjectByUsername.js +8 -0
- package/lib/core/methods/extras/getProfileLinkItems.d.ts +3 -0
- package/lib/core/methods/extras/getProfileLinkItems.js +6 -0
- package/lib/core/methods/extras/getRelatedObjects.d.ts +3 -0
- package/lib/core/methods/extras/getRelatedObjects.js +6 -0
- package/lib/core/methods/extras/getTranscription.d.ts +3 -0
- package/lib/core/methods/extras/getTranscription.js +9 -0
- package/lib/core/methods/extras/join.d.ts +3 -0
- package/lib/core/methods/extras/join.js +11 -0
- package/lib/core/methods/extras/joinVoiceChat.d.ts +3 -0
- package/lib/core/methods/extras/joinVoiceChat.js +11 -0
- package/lib/core/methods/extras/leaveChat.d.ts +3 -0
- package/lib/core/methods/extras/leaveChat.js +9 -0
- package/lib/core/methods/extras/onEditMessages.d.ts +4 -0
- package/lib/core/methods/extras/onEditMessages.js +32 -0
- package/lib/core/methods/extras/reportObject.d.ts +14 -0
- package/lib/core/methods/extras/reportObject.js +21 -0
- package/lib/core/methods/extras/searchGlobalObjects.d.ts +3 -0
- package/lib/core/methods/extras/searchGlobalObjects.js +6 -0
- package/lib/core/methods/extras/sendVoiceChatActivity.d.ts +3 -0
- package/lib/core/methods/extras/sendVoiceChatActivity.js +13 -0
- package/lib/core/methods/extras/setVoiceChatState.d.ts +3 -0
- package/lib/core/methods/extras/setVoiceChatState.js +14 -0
- package/lib/core/methods/extras/transcribeVoice.d.ts +3 -0
- package/lib/core/methods/extras/transcribeVoice.js +6 -0
- package/lib/core/methods/extras/userIsAdmin.d.ts +3 -0
- package/lib/core/methods/extras/userIsAdmin.js +18 -0
- package/lib/core/methods/gif/addToMyGifSet.d.ts +3 -0
- package/lib/core/methods/gif/addToMyGifSet.js +6 -0
- package/lib/core/methods/gif/getMyGifSet.d.ts +3 -0
- package/lib/core/methods/gif/getMyGifSet.js +6 -0
- package/lib/core/methods/gif/removeFromMyGifSet.d.ts +3 -0
- package/lib/core/methods/gif/removeFromMyGifSet.js +6 -0
- package/lib/core/methods/groups/addGroup.d.ts +3 -0
- package/lib/core/methods/groups/addGroup.js +8 -0
- package/lib/core/methods/groups/addGroupMembers.d.ts +3 -0
- package/lib/core/methods/groups/addGroupMembers.js +8 -0
- package/lib/core/methods/groups/banGroupMember.d.ts +3 -0
- package/lib/core/methods/groups/banGroupMember.js +14 -0
- package/lib/core/methods/groups/createGroupVoiceChat.d.ts +3 -0
- package/lib/core/methods/groups/createGroupVoiceChat.js +6 -0
- package/lib/core/methods/groups/deleteNoAccessGroupChat.d.ts +3 -0
- package/lib/core/methods/groups/deleteNoAccessGroupChat.js +6 -0
- package/lib/core/methods/groups/discardGroupVoiceChat.d.ts +3 -0
- package/lib/core/methods/groups/discardGroupVoiceChat.js +9 -0
- package/lib/core/methods/groups/editGroupInfo.d.ts +6 -0
- package/lib/core/methods/groups/editGroupInfo.js +41 -0
- package/lib/core/methods/groups/getBannedGroupMembers.d.ts +3 -0
- package/lib/core/methods/groups/getBannedGroupMembers.js +6 -0
- package/lib/core/methods/groups/getGroupAdminAccessList.d.ts +3 -0
- package/lib/core/methods/groups/getGroupAdminAccessList.js +9 -0
- package/lib/core/methods/groups/getGroupAdminMembers.d.ts +3 -0
- package/lib/core/methods/groups/getGroupAdminMembers.js +6 -0
- package/lib/core/methods/groups/getGroupAllMembers.d.ts +3 -0
- package/lib/core/methods/groups/getGroupAllMembers.js +10 -0
- package/lib/core/methods/groups/getGroupDefaultAccess.d.ts +3 -0
- package/lib/core/methods/groups/getGroupDefaultAccess.js +6 -0
- package/lib/core/methods/groups/getGroupInfo.d.ts +3 -0
- package/lib/core/methods/groups/getGroupInfo.js +6 -0
- package/lib/core/methods/groups/getGroupLink.d.ts +3 -0
- package/lib/core/methods/groups/getGroupLink.js +6 -0
- package/lib/core/methods/groups/getGroupMentionList.d.ts +3 -0
- package/lib/core/methods/groups/getGroupMentionList.js +9 -0
- package/lib/core/methods/groups/getGroupOnlineCount.d.ts +3 -0
- package/lib/core/methods/groups/getGroupOnlineCount.js +6 -0
- package/lib/core/methods/groups/getGroupVoiceChatParticipants.d.ts +3 -0
- package/lib/core/methods/groups/getGroupVoiceChatParticipants.js +7 -0
- package/lib/core/methods/groups/getGroupVoiceChatUpdates.d.ts +3 -0
- package/lib/core/methods/groups/getGroupVoiceChatUpdates.js +10 -0
- package/lib/core/methods/groups/groupPreviewByJoinLink.d.ts +3 -0
- package/lib/core/methods/groups/groupPreviewByJoinLink.js +8 -0
- package/lib/core/methods/groups/joinGroup.d.ts +3 -0
- package/lib/core/methods/groups/joinGroup.js +8 -0
- package/lib/core/methods/groups/joinGroupVoiceChat.d.ts +3 -0
- package/lib/core/methods/groups/joinGroupVoiceChat.js +11 -0
- package/lib/core/methods/groups/leaveGroup.d.ts +3 -0
- package/lib/core/methods/groups/leaveGroup.js +6 -0
- package/lib/core/methods/groups/leaveGroupVoiceChat.d.ts +3 -0
- package/lib/core/methods/groups/leaveGroupVoiceChat.js +9 -0
- package/lib/core/methods/groups/removeGroup.d.ts +3 -0
- package/lib/core/methods/groups/removeGroup.js +6 -0
- package/lib/core/methods/groups/seenGroupMessages.d.ts +3 -0
- package/lib/core/methods/groups/seenGroupMessages.js +10 -0
- package/lib/core/methods/groups/setGroupAdmin.d.ts +5 -0
- package/lib/core/methods/groups/setGroupAdmin.js +17 -0
- package/lib/core/methods/groups/setGroupDefaultAccess.d.ts +4 -0
- package/lib/core/methods/groups/setGroupDefaultAccess.js +11 -0
- package/lib/core/methods/groups/setGroupLink.d.ts +3 -0
- package/lib/core/methods/groups/setGroupLink.js +6 -0
- package/lib/core/methods/groups/setGroupVoiceChatSetting.d.ts +3 -0
- package/lib/core/methods/groups/setGroupVoiceChatSetting.js +15 -0
- package/lib/core/methods/index.d.ts +189 -0
- package/lib/core/methods/index.js +589 -0
- package/lib/core/methods/messages/actionOnMessageReaction.d.ts +3 -0
- package/lib/core/methods/messages/actionOnMessageReaction.js +14 -0
- package/lib/core/methods/messages/createPoll.d.ts +3 -0
- package/lib/core/methods/messages/createPoll.js +26 -0
- package/lib/core/methods/messages/deleteMessages.d.ts +3 -0
- package/lib/core/methods/messages/deleteMessages.js +17 -0
- package/lib/core/methods/messages/editMessage.d.ts +3 -0
- package/lib/core/methods/messages/editMessage.js +15 -0
- package/lib/core/methods/messages/forwardMessages.d.ts +3 -0
- package/lib/core/methods/messages/forwardMessages.js +22 -0
- package/lib/core/methods/messages/getMessageShareUrl.d.ts +3 -0
- package/lib/core/methods/messages/getMessageShareUrl.js +6 -0
- package/lib/core/methods/messages/getMessages.d.ts +3 -0
- package/lib/core/methods/messages/getMessages.js +12 -0
- package/lib/core/methods/messages/getMessagesByID.d.ts +3 -0
- package/lib/core/methods/messages/getMessagesByID.js +11 -0
- package/lib/core/methods/messages/getMessagesInterval.d.ts +3 -0
- package/lib/core/methods/messages/getMessagesInterval.js +9 -0
- package/lib/core/methods/messages/getMessagesUpdates.d.ts +3 -0
- package/lib/core/methods/messages/getMessagesUpdates.js +6 -0
- package/lib/core/methods/messages/getPollOptionVoters.d.ts +3 -0
- package/lib/core/methods/messages/getPollOptionVoters.js +10 -0
- package/lib/core/methods/messages/getPollStatus.d.ts +3 -0
- package/lib/core/methods/messages/getPollStatus.js +6 -0
- package/lib/core/methods/messages/index.d.ts +26 -0
- package/lib/core/methods/messages/index.js +56 -0
- package/lib/core/methods/messages/sendDocument.d.ts +3 -0
- package/lib/core/methods/messages/sendDocument.js +6 -0
- package/lib/core/methods/messages/sendFileInline.d.ts +18 -0
- package/lib/core/methods/messages/sendFileInline.js +24 -0
- package/lib/core/methods/messages/sendGif.d.ts +3 -0
- package/lib/core/methods/messages/sendGif.js +6 -0
- package/lib/core/methods/messages/sendMessage.d.ts +3 -0
- package/lib/core/methods/messages/sendMessage.js +139 -0
- package/lib/core/methods/messages/sendMusic.d.ts +3 -0
- package/lib/core/methods/messages/sendMusic.js +6 -0
- package/lib/core/methods/messages/sendPhoto.d.ts +3 -0
- package/lib/core/methods/messages/sendPhoto.js +6 -0
- package/lib/core/methods/messages/sendSticker.d.ts +3 -0
- package/lib/core/methods/messages/sendSticker.js +6 -0
- package/lib/core/methods/messages/sendText.d.ts +3 -0
- package/lib/core/methods/messages/sendText.js +6 -0
- package/lib/core/methods/messages/sendVideo.d.ts +3 -0
- package/lib/core/methods/messages/sendVideo.js +6 -0
- package/lib/core/methods/messages/sendVideoMessage.d.ts +3 -0
- package/lib/core/methods/messages/sendVideoMessage.js +6 -0
- package/lib/core/methods/messages/sendVoice.d.ts +3 -0
- package/lib/core/methods/messages/sendVoice.js +6 -0
- package/lib/core/methods/messages/setPinMessage.d.ts +3 -0
- package/lib/core/methods/messages/setPinMessage.js +14 -0
- package/lib/core/methods/messages/votePoll.d.ts +3 -0
- package/lib/core/methods/messages/votePoll.js +6 -0
- package/lib/core/methods/settings/changePassword.d.ts +3 -0
- package/lib/core/methods/settings/changePassword.js +6 -0
- package/lib/core/methods/settings/checkTwoStepPasscode.d.ts +3 -0
- package/lib/core/methods/settings/checkTwoStepPasscode.js +6 -0
- package/lib/core/methods/settings/deleteFolder.d.ts +3 -0
- package/lib/core/methods/settings/deleteFolder.js +6 -0
- package/lib/core/methods/settings/getBlockedUsers.d.ts +3 -0
- package/lib/core/methods/settings/getBlockedUsers.js +6 -0
- package/lib/core/methods/settings/getFolders.d.ts +3 -0
- package/lib/core/methods/settings/getFolders.js +6 -0
- package/lib/core/methods/settings/getMySessions.d.ts +3 -0
- package/lib/core/methods/settings/getMySessions.js +6 -0
- package/lib/core/methods/settings/getPrivacySetting.d.ts +3 -0
- package/lib/core/methods/settings/getPrivacySetting.js +6 -0
- package/lib/core/methods/settings/getSuggestedFolders.d.ts +3 -0
- package/lib/core/methods/settings/getSuggestedFolders.js +6 -0
- package/lib/core/methods/settings/getTwoPasscodeStatus.d.ts +3 -0
- package/lib/core/methods/settings/getTwoPasscodeStatus.js +6 -0
- package/lib/core/methods/settings/requestRecoveryEmail.d.ts +3 -0
- package/lib/core/methods/settings/requestRecoveryEmail.js +9 -0
- package/lib/core/methods/settings/setSetting.d.ts +5 -0
- package/lib/core/methods/settings/setSetting.js +51 -0
- package/lib/core/methods/settings/setupTwoStepVerification.d.ts +3 -0
- package/lib/core/methods/settings/setupTwoStepVerification.js +10 -0
- package/lib/core/methods/settings/terminateOtherSessions.d.ts +3 -0
- package/lib/core/methods/settings/terminateOtherSessions.js +7 -0
- package/lib/core/methods/settings/terminateSession.d.ts +3 -0
- package/lib/core/methods/settings/terminateSession.js +6 -0
- package/lib/core/methods/settings/turnOffTwoStep.d.ts +3 -0
- package/lib/core/methods/settings/turnOffTwoStep.js +7 -0
- package/lib/core/methods/settings/updateProfile.d.ts +3 -0
- package/lib/core/methods/settings/updateProfile.js +21 -0
- package/lib/core/methods/settings/updateUsername.d.ts +3 -0
- package/lib/core/methods/settings/updateUsername.js +6 -0
- package/lib/core/methods/settings/verifyRecoveryEmail.d.ts +3 -0
- package/lib/core/methods/settings/verifyRecoveryEmail.js +6 -0
- package/lib/core/methods/stickers/actionOnStickerSet.d.ts +3 -0
- package/lib/core/methods/stickers/actionOnStickerSet.js +10 -0
- package/lib/core/methods/stickers/getMyStickerSets.d.ts +3 -0
- package/lib/core/methods/stickers/getMyStickerSets.js +6 -0
- package/lib/core/methods/stickers/getStickerSetByID.d.ts +3 -0
- package/lib/core/methods/stickers/getStickerSetByID.js +6 -0
- package/lib/core/methods/stickers/getStickersByEmoji.d.ts +3 -0
- package/lib/core/methods/stickers/getStickersByEmoji.js +6 -0
- package/lib/core/methods/stickers/getStickersBySetIds.d.ts +3 -0
- package/lib/core/methods/stickers/getStickersBySetIds.js +8 -0
- package/lib/core/methods/stickers/getTrendStickerSets.d.ts +3 -0
- package/lib/core/methods/stickers/getTrendStickerSets.js +6 -0
- package/lib/core/methods/stickers/searchStickers.d.ts +3 -0
- package/lib/core/methods/stickers/searchStickers.js +6 -0
- package/lib/core/methods/users/checkUserUsername.d.ts +3 -0
- package/lib/core/methods/users/checkUserUsername.js +6 -0
- package/lib/core/methods/users/deleteUserChat.d.ts +3 -0
- package/lib/core/methods/users/deleteUserChat.js +9 -0
- package/lib/core/methods/users/getMe.d.ts +3 -0
- package/lib/core/methods/users/getMe.js +6 -0
- package/lib/core/methods/users/getUserInfo.d.ts +3 -0
- package/lib/core/methods/users/getUserInfo.js +7 -0
- package/lib/core/methods/users/setBlockUser.d.ts +3 -0
- package/lib/core/methods/users/setBlockUser.js +9 -0
- package/lib/core/methods/utilities/download.d.ts +4 -0
- package/lib/core/methods/utilities/download.js +6 -0
- package/lib/core/methods/utilities/downloadProfilePicture.d.ts +4 -0
- package/lib/core/methods/utilities/downloadProfilePicture.js +28 -0
- package/lib/core/methods/utilities/index.d.ts +8 -0
- package/lib/core/methods/utilities/index.js +20 -0
- package/lib/core/methods/utilities/requestSendFile.d.ts +3 -0
- package/lib/core/methods/utilities/requestSendFile.js +11 -0
- package/lib/core/methods/utilities/run.d.ts +3 -0
- package/lib/core/methods/utilities/run.js +9 -0
- package/lib/core/methods/utilities/start.d.ts +3 -0
- package/lib/core/methods/utilities/start.js +71 -0
- package/lib/core/methods/utilities/thumbnail.js +70 -0
- package/lib/core/methods/utilities/usePlugin.d.ts +4 -0
- package/lib/core/methods/utilities/usePlugin.js +25 -0
- package/lib/core/network/api.d.ts +16 -0
- package/lib/core/network/api.js +95 -0
- package/lib/core/network/file.d.ts +3 -0
- package/lib/core/network/file.js +117 -0
- package/lib/core/network/index.d.ts +25 -0
- package/lib/core/network/index.js +31 -0
- package/lib/core/network/utils.d.ts +9 -0
- package/lib/core/network/utils.js +34 -0
- package/lib/core/network/websocket.d.ts +3 -0
- package/lib/core/network/websocket.js +190 -0
- package/lib/core/session.d.ts +12 -0
- package/lib/core/session.js +65 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +48 -0
- package/lib/types/client.type.d.ts +31 -0
- package/lib/types/decorators.type.d.ts +173 -0
- package/lib/types/index.type.d.ts +5 -0
- package/lib/types/index.type.js +44 -0
- package/lib/types/network.type.d.ts +7 -0
- package/lib/types/session.type.d.ts +7 -0
- package/lib/utils/prompt.d.ts +1 -0
- package/lib/utils/prompt.js +17 -0
- package/package.json +45 -43
- package/rubjs/client.d.ts +0 -41
- package/rubjs/client.js +0 -40
- package/rubjs/clients/VoiceChatClient.d.ts +0 -30
- package/rubjs/clients/VoiceChatClient.js +0 -183
- package/rubjs/clients/index.d.ts +0 -4
- package/rubjs/clients/index.js +0 -12
- package/rubjs/clients/loginClient.d.ts +0 -47
- package/rubjs/clients/loginClient.js +0 -122
- package/rubjs/clients/sendLiveClient.d.ts +0 -25
- package/rubjs/clients/sendLiveClient.js +0 -146
- 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 -53
- package/rubjs/methods/advanced/builder.d.ts +0 -3
- package/rubjs/methods/advanced/builder.js +0 -41
- 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 -27
- 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 -25
- 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 -50
- 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/joinChannelAction.d.ts +0 -3
- package/rubjs/methods/channels/joinChannelAction.js +0 -21
- 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/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 -25
- 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 -21
- 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 -21
- 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/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/deleteMessagebyCount.d.ts +0 -3
- package/rubjs/methods/extras/deleteMessagebyCount.js +0 -30
- 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/join.d.ts +0 -3
- package/rubjs/methods/extras/join.js +0 -22
- package/rubjs/methods/extras/joinVoiceChat.d.ts +0 -3
- package/rubjs/methods/extras/joinVoiceChat.js +0 -22
- package/rubjs/methods/extras/leaveChat.d.ts +0 -3
- package/rubjs/methods/extras/leaveChat.js +0 -20
- package/rubjs/methods/extras/onEditMessages.d.ts +0 -3
- package/rubjs/methods/extras/onEditMessages.js +0 -41
- 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/sendVoiceChatActivity.d.ts +0 -3
- package/rubjs/methods/extras/sendVoiceChatActivity.js +0 -24
- package/rubjs/methods/extras/setVoiceChatState.d.ts +0 -3
- package/rubjs/methods/extras/setVoiceChatState.js +0 -25
- 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/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 -25
- 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 -52
- 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/getGroupVoiceChatParticipants.d.ts +0 -3
- package/rubjs/methods/groups/getGroupVoiceChatParticipants.js +0 -18
- 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/joinGroup.d.ts +0 -3
- package/rubjs/methods/groups/joinGroup.js +0 -19
- package/rubjs/methods/groups/joinGroupVoiceChat.d.ts +0 -3
- package/rubjs/methods/groups/joinGroupVoiceChat.js +0 -22
- 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 -28
- 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 -203
- package/rubjs/methods/index.js +0 -967
- 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 -37
- package/rubjs/methods/messages/deleteMessages.d.ts +0 -3
- package/rubjs/methods/messages/deleteMessages.js +0 -28
- 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 -27
- package/rubjs/methods/messages/index.js +0 -58
- 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/sendFileInline.d.ts +0 -18
- package/rubjs/methods/messages/sendFileInline.js +0 -35
- 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 -149
- 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 -25
- 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/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 -60
- 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 -21
- 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/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/setBlockUser.d.ts +0 -3
- package/rubjs/methods/users/setBlockUser.js +0 -20
- 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 -82
- package/rubjs/methods/utilities/thumbnail.js +0 -85
- package/rubjs/network/index.d.ts +0 -37
- package/rubjs/network/index.js +0 -405
- package/rubjs/network/loginNetwork.d.ts +0 -39
- package/rubjs/network/loginNetwork.js +0 -122
- package/rubjs/session/index.d.ts +0 -23
- package/rubjs/session/index.js +0 -65
- package/rubjs/types/auth.d.ts +0 -40
- package/rubjs/types/chats.d.ts +0 -79
- package/rubjs/types/decorators.d.ts +0 -170
- package/rubjs/types/groups.d.ts +0 -155
- package/rubjs/types/index.d.ts +0 -8
- package/rubjs/types/index.js +0 -53
- package/rubjs/types/message.d.ts +0 -26
- package/rubjs/types/message.js +0 -81
- package/rubjs/types/messages.d.ts +0 -178
- 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 -33
- package/rubjs/utils/filters.js +0 -167
- package/rubjs/utils/index.d.ts +0 -3
- package/rubjs/utils/index.js +0 -10
- /package/{rubjs → lib/core}/methods/advanced/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/advanced/index.js +0 -0
- /package/{rubjs → lib/core}/methods/auth/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/auth/index.js +0 -0
- /package/{rubjs → lib/core}/methods/channels/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/channels/index.js +0 -0
- /package/{rubjs → lib/core}/methods/chats/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/chats/index.js +0 -0
- /package/{rubjs → lib/core}/methods/contacts/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/contacts/index.js +0 -0
- /package/{rubjs → lib/core}/methods/extras/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/extras/index.js +0 -0
- /package/{rubjs → lib/core}/methods/gif/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/gif/index.js +0 -0
- /package/{rubjs → lib/core}/methods/groups/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/groups/index.js +0 -0
- /package/{rubjs → lib/core}/methods/settings/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/settings/index.js +0 -0
- /package/{rubjs → lib/core}/methods/stickers/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/stickers/index.js +0 -0
- /package/{rubjs → lib/core}/methods/users/index.d.ts +0 -0
- /package/{rubjs → lib/core}/methods/users/index.js +0 -0
- /package/{rubjs → lib/core}/methods/utilities/thumbnail.d.ts +0 -0
- /package/{rubjs/parser/index.d.ts → lib/core/parser.d.ts} +0 -0
- /package/{rubjs/parser/index.js → lib/core/parser.js} +0 -0
- /package/{rubjs/types/auth.js → lib/types/client.type.js} +0 -0
- /package/{rubjs/types/chats.js → lib/types/decorators.type.js} +0 -0
- /package/{rubjs/types/decorators.js → lib/types/network.type.js} +0 -0
- /package/{rubjs/types/groups.js → lib/types/session.type.js} +0 -0
- /package/{rubjs → lib}/utils/utils.d.ts +0 -0
- /package/{rubjs → lib}/utils/utils.js +0 -0
package/rubjs/types/auth.d.ts
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
interface SendCode {
|
2
|
-
phone_code_hash: string;
|
3
|
-
status: string;
|
4
|
-
code_digits_count: number;
|
5
|
-
has_confirmed_recovery_email: boolean;
|
6
|
-
no_recovery_alert: string;
|
7
|
-
send_type: string;
|
8
|
-
hint_pass_key: string;
|
9
|
-
}
|
10
|
-
interface AvatarThumbnail {
|
11
|
-
file_id: string;
|
12
|
-
mime: string;
|
13
|
-
dc_id: string;
|
14
|
-
access_hash_rec: string;
|
15
|
-
}
|
16
|
-
interface OnlineTime {
|
17
|
-
type: string;
|
18
|
-
exact_time: number;
|
19
|
-
}
|
20
|
-
interface User {
|
21
|
-
user_guid: string;
|
22
|
-
first_name: string;
|
23
|
-
last_name: string;
|
24
|
-
phone: string;
|
25
|
-
username: string;
|
26
|
-
avatar_thumbnail: AvatarThumbnail;
|
27
|
-
last_online: number;
|
28
|
-
bio: string | boolean;
|
29
|
-
is_deleted: boolean;
|
30
|
-
is_verified: boolean;
|
31
|
-
online_time: OnlineTime;
|
32
|
-
}
|
33
|
-
interface SignIn {
|
34
|
-
status: string;
|
35
|
-
auth: string;
|
36
|
-
user: User;
|
37
|
-
timestamp: number;
|
38
|
-
}
|
39
|
-
export { SignIn, SendCode };
|
40
|
-
export default SendCode;
|
package/rubjs/types/chats.d.ts
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
import MessageUpdate, { ChatUpdates } from "./decorators";
|
2
|
-
interface Avatar {
|
3
|
-
file_id: string;
|
4
|
-
mime: string;
|
5
|
-
dc_id: string;
|
6
|
-
access_hash_rec: string;
|
7
|
-
}
|
8
|
-
interface getTopChatUsers {
|
9
|
-
abs_users: {
|
10
|
-
object_guid: string;
|
11
|
-
type: string;
|
12
|
-
first_name: string;
|
13
|
-
avatar_thumbnail: Avatar;
|
14
|
-
is_verified: boolean;
|
15
|
-
is_deleted: boolean;
|
16
|
-
}[];
|
17
|
-
timestamp: string;
|
18
|
-
}
|
19
|
-
interface GetObjectInfoByUsername {
|
20
|
-
exist: boolean;
|
21
|
-
type: string;
|
22
|
-
channel: {
|
23
|
-
channel_guid: string;
|
24
|
-
channel_title: string;
|
25
|
-
avatar_thumbnail: Avatar;
|
26
|
-
count_members: number;
|
27
|
-
description: string;
|
28
|
-
username: string;
|
29
|
-
is_deleted: boolean;
|
30
|
-
is_verified: boolean;
|
31
|
-
share_url: string;
|
32
|
-
channel_type: string;
|
33
|
-
sign_messages: boolean;
|
34
|
-
chat_reaction_setting: {
|
35
|
-
reaction_type: string;
|
36
|
-
selected_reactions: string[];
|
37
|
-
};
|
38
|
-
is_restricted_content: boolean;
|
39
|
-
};
|
40
|
-
chat: {
|
41
|
-
object_guid: string;
|
42
|
-
access: string[];
|
43
|
-
count_unseen: number;
|
44
|
-
is_mute: boolean;
|
45
|
-
is_pinned: boolean;
|
46
|
-
time_string: string;
|
47
|
-
last_message: {
|
48
|
-
message_id: string;
|
49
|
-
type: string;
|
50
|
-
text: string;
|
51
|
-
is_mine: boolean;
|
52
|
-
};
|
53
|
-
last_seen_my_mid: string;
|
54
|
-
last_seen_peer_mid: string;
|
55
|
-
status: string;
|
56
|
-
time: number;
|
57
|
-
pinned_message_id: string;
|
58
|
-
abs_object: {
|
59
|
-
object_guid: string;
|
60
|
-
type: string;
|
61
|
-
title: string;
|
62
|
-
avatar_thumbnail: [Object];
|
63
|
-
is_verified: boolean;
|
64
|
-
is_deleted: boolean;
|
65
|
-
};
|
66
|
-
is_blocked: boolean;
|
67
|
-
last_message_id: string;
|
68
|
-
last_deleted_mid: string;
|
69
|
-
pinned_message_ids: string[];
|
70
|
-
};
|
71
|
-
timestamp: string;
|
72
|
-
}
|
73
|
-
interface SendLive {
|
74
|
-
message_update: MessageUpdate;
|
75
|
-
chat_update: ChatUpdates;
|
76
|
-
status: string;
|
77
|
-
publish_text: string;
|
78
|
-
}
|
79
|
-
export { getTopChatUsers, GetObjectInfoByUsername, SendLive };
|
@@ -1,170 +0,0 @@
|
|
1
|
-
interface FileInline {
|
2
|
-
file_id: number;
|
3
|
-
mime: string;
|
4
|
-
dc_id: number;
|
5
|
-
access_hash_rec: string;
|
6
|
-
file_name: string;
|
7
|
-
width?: number;
|
8
|
-
height?: number;
|
9
|
-
size: number;
|
10
|
-
type: string;
|
11
|
-
time?: number;
|
12
|
-
music_performer?: string;
|
13
|
-
is_round?: boolean;
|
14
|
-
is_spoil?: boolean;
|
15
|
-
}
|
16
|
-
interface ContactMessage {
|
17
|
-
phone_number: string;
|
18
|
-
first_name: string;
|
19
|
-
last_name: string;
|
20
|
-
user_guid: string;
|
21
|
-
vcard: string;
|
22
|
-
}
|
23
|
-
interface LiveData {
|
24
|
-
live_id: string;
|
25
|
-
thumb_inline: string;
|
26
|
-
access_token: string;
|
27
|
-
live_status: {
|
28
|
-
status: string;
|
29
|
-
play_count: number;
|
30
|
-
allow_comment: boolean;
|
31
|
-
can_play: boolean;
|
32
|
-
timestamp: string;
|
33
|
-
};
|
34
|
-
}
|
35
|
-
interface Location {
|
36
|
-
longitude: number;
|
37
|
-
latitude: number;
|
38
|
-
map_view: {
|
39
|
-
tile_side_count: number;
|
40
|
-
tile_urls: string[];
|
41
|
-
x_loc: number;
|
42
|
-
y_loc: number;
|
43
|
-
};
|
44
|
-
}
|
45
|
-
interface EventData {
|
46
|
-
type: string;
|
47
|
-
performer_object: {
|
48
|
-
type: string;
|
49
|
-
object_guid: string;
|
50
|
-
};
|
51
|
-
group_voice_chat_duration: number;
|
52
|
-
title: string;
|
53
|
-
avatar_thumbnail: Avatar;
|
54
|
-
avatar: Avatar;
|
55
|
-
}
|
56
|
-
interface Avatar {
|
57
|
-
file_id: string;
|
58
|
-
mime: string;
|
59
|
-
dc_id: string;
|
60
|
-
access_hash_rec: string;
|
61
|
-
}
|
62
|
-
interface PollData {
|
63
|
-
poll_id: string;
|
64
|
-
question: string;
|
65
|
-
options: string[];
|
66
|
-
poll_status: {
|
67
|
-
state: string;
|
68
|
-
selection_index: number;
|
69
|
-
percent_vote_options: number[];
|
70
|
-
total_vote: number;
|
71
|
-
show_total_votes: boolean;
|
72
|
-
};
|
73
|
-
is_anonymous: boolean;
|
74
|
-
type: string;
|
75
|
-
allows_multiple_answers: boolean;
|
76
|
-
}
|
77
|
-
interface MetaData {
|
78
|
-
meta_data_parts: {
|
79
|
-
from_index: number;
|
80
|
-
length: number;
|
81
|
-
type: string;
|
82
|
-
link?: {
|
83
|
-
url: string;
|
84
|
-
};
|
85
|
-
}[];
|
86
|
-
}
|
87
|
-
interface Message {
|
88
|
-
message_id: string;
|
89
|
-
text?: string;
|
90
|
-
time: string;
|
91
|
-
is_edited: boolean;
|
92
|
-
type: string;
|
93
|
-
reply_to_message_id: string;
|
94
|
-
author_type: string;
|
95
|
-
author_title: string;
|
96
|
-
author_object_guid: string;
|
97
|
-
allow_transcription?: boolean;
|
98
|
-
file_inline?: FileInline;
|
99
|
-
contact_message: ContactMessage;
|
100
|
-
live_data: LiveData;
|
101
|
-
poll: PollData;
|
102
|
-
location: Location;
|
103
|
-
event_data: EventData;
|
104
|
-
forwarded_from?: {
|
105
|
-
type_from: string;
|
106
|
-
message_id: string;
|
107
|
-
object_guid: string;
|
108
|
-
};
|
109
|
-
metadata?: MetaData;
|
110
|
-
count_seen?: string;
|
111
|
-
thumb_inline?: string;
|
112
|
-
}
|
113
|
-
interface MessageUpdate {
|
114
|
-
message_id: string;
|
115
|
-
action: string;
|
116
|
-
message: Message;
|
117
|
-
updated_parameters: any[];
|
118
|
-
timestamp: string;
|
119
|
-
prev_message_id: string;
|
120
|
-
object_guid: string;
|
121
|
-
type: string;
|
122
|
-
state: string;
|
123
|
-
client_guid: string;
|
124
|
-
}
|
125
|
-
interface ChatUpdates {
|
126
|
-
object_guid: string;
|
127
|
-
action: string;
|
128
|
-
chat: {
|
129
|
-
time_string: string;
|
130
|
-
last_message: {
|
131
|
-
message_id: string;
|
132
|
-
type: string;
|
133
|
-
text: string;
|
134
|
-
author_object_guid?: string;
|
135
|
-
is_mine: boolean;
|
136
|
-
author_title?: string;
|
137
|
-
author_type?: string;
|
138
|
-
};
|
139
|
-
last_seen_peer_mid?: string;
|
140
|
-
last_seen_my_mid?: string;
|
141
|
-
status?: string;
|
142
|
-
time: number;
|
143
|
-
last_message_id: string;
|
144
|
-
group_voice_chat_id?: string;
|
145
|
-
};
|
146
|
-
updated_parameters: string[];
|
147
|
-
timestamp: string;
|
148
|
-
type: string;
|
149
|
-
}
|
150
|
-
interface ShowActivities {
|
151
|
-
type: string;
|
152
|
-
object_guid: string;
|
153
|
-
object_type: string;
|
154
|
-
user_activity_guid: string;
|
155
|
-
}
|
156
|
-
interface ShowNotifications {
|
157
|
-
notification_id: string;
|
158
|
-
type: string;
|
159
|
-
title: string;
|
160
|
-
text: string;
|
161
|
-
image_file_id?: number;
|
162
|
-
message_data: {
|
163
|
-
object_guid: string;
|
164
|
-
object_type: string;
|
165
|
-
message_id: number;
|
166
|
-
sender_guid?: string;
|
167
|
-
};
|
168
|
-
}
|
169
|
-
export { MessageUpdate, ChatUpdates, ShowActivities, ShowNotifications, Message, FileInline };
|
170
|
-
export default MessageUpdate;
|
package/rubjs/types/groups.d.ts
DELETED
@@ -1,155 +0,0 @@
|
|
1
|
-
import MessageUpdate, { ChatUpdates } from "./decorators";
|
2
|
-
interface ChatReactionSetting {
|
3
|
-
reaction_type: string;
|
4
|
-
}
|
5
|
-
interface AvatarThumbnail {
|
6
|
-
file_id: string;
|
7
|
-
mime: string;
|
8
|
-
dc_id: string;
|
9
|
-
access_hash_rec: string;
|
10
|
-
}
|
11
|
-
interface OnlineTime {
|
12
|
-
type: string;
|
13
|
-
exact_time: number;
|
14
|
-
}
|
15
|
-
interface Group {
|
16
|
-
group_guid: string;
|
17
|
-
group_title: string;
|
18
|
-
count_members: number;
|
19
|
-
is_deleted: boolean;
|
20
|
-
is_verified: boolean;
|
21
|
-
slow_mode: number;
|
22
|
-
chat_history_for_new_members: string;
|
23
|
-
event_messages: boolean;
|
24
|
-
chat_reaction_setting: ChatReactionSetting;
|
25
|
-
is_restricted_content: boolean;
|
26
|
-
}
|
27
|
-
interface Chat {
|
28
|
-
object_guid: string;
|
29
|
-
access: string[];
|
30
|
-
count_unseen: number;
|
31
|
-
is_mute: boolean;
|
32
|
-
is_pinned: boolean;
|
33
|
-
time_string: string;
|
34
|
-
last_message: {
|
35
|
-
message_id: string;
|
36
|
-
type: string;
|
37
|
-
text: string;
|
38
|
-
};
|
39
|
-
last_seen_my_mid: string;
|
40
|
-
last_seen_peer_mid: string;
|
41
|
-
status: string;
|
42
|
-
time: number;
|
43
|
-
abs_object: {
|
44
|
-
object_guid: string;
|
45
|
-
type: string;
|
46
|
-
title: string;
|
47
|
-
is_verified: boolean;
|
48
|
-
is_deleted: boolean;
|
49
|
-
};
|
50
|
-
is_blocked: boolean;
|
51
|
-
last_message_id: string;
|
52
|
-
last_deleted_mid: string;
|
53
|
-
slow_mode_duration: number;
|
54
|
-
}
|
55
|
-
interface ChatUpdate {
|
56
|
-
object_guid: string;
|
57
|
-
action: string;
|
58
|
-
updated_parameters: [];
|
59
|
-
timestamp: string;
|
60
|
-
type: string;
|
61
|
-
chat?: Chat;
|
62
|
-
}
|
63
|
-
interface GroupVoiceChat {
|
64
|
-
voice_chat_id: string;
|
65
|
-
state: string;
|
66
|
-
join_muted: boolean;
|
67
|
-
participant_count: number;
|
68
|
-
title: string;
|
69
|
-
version: number;
|
70
|
-
}
|
71
|
-
interface GroupVoiceChatUpdate {
|
72
|
-
voice_chat_id: string;
|
73
|
-
group_guid: string;
|
74
|
-
action: string;
|
75
|
-
group_voice_chat: GroupVoiceChat;
|
76
|
-
updated_parameters: [];
|
77
|
-
timestamp: string;
|
78
|
-
chat_guid_type: {
|
79
|
-
type: string;
|
80
|
-
object_guid: string;
|
81
|
-
};
|
82
|
-
}
|
83
|
-
interface GroupMember {
|
84
|
-
member_type: string;
|
85
|
-
member_guid: string;
|
86
|
-
first_name: string;
|
87
|
-
last_name: string;
|
88
|
-
avatar_thumbnail: AvatarThumbnail;
|
89
|
-
is_verified: boolean;
|
90
|
-
is_deleted: boolean;
|
91
|
-
last_online: number;
|
92
|
-
join_type: string;
|
93
|
-
username: string;
|
94
|
-
online_time: OnlineTime;
|
95
|
-
}
|
96
|
-
interface AddGroup {
|
97
|
-
group: Group;
|
98
|
-
chat_update: ChatUpdate;
|
99
|
-
message_update: MessageUpdate;
|
100
|
-
timestamp: string;
|
101
|
-
}
|
102
|
-
interface DeleteNoAccessGroupChat {
|
103
|
-
chat_update: ChatUpdate;
|
104
|
-
status: string;
|
105
|
-
}
|
106
|
-
interface CreateGroupVoiceChat {
|
107
|
-
status: string;
|
108
|
-
chat_update: ChatUpdates;
|
109
|
-
message_update: MessageUpdate;
|
110
|
-
group_voice_chat_update: GroupVoiceChatUpdate;
|
111
|
-
}
|
112
|
-
interface AddGroupMembers {
|
113
|
-
chat_update: ChatUpdates;
|
114
|
-
message_update: MessageUpdate;
|
115
|
-
added_in_chat_members: GroupMember[];
|
116
|
-
timestamp: string;
|
117
|
-
group: Group;
|
118
|
-
}
|
119
|
-
interface BanGroupMember {
|
120
|
-
chat_update: ChatUpdates;
|
121
|
-
message_update: MessageUpdate;
|
122
|
-
timestamp: string;
|
123
|
-
group: Group;
|
124
|
-
}
|
125
|
-
interface GetBannedGroupMembers {
|
126
|
-
in_chat_members: GroupMember[];
|
127
|
-
next_start_id: string;
|
128
|
-
has_continue: boolean;
|
129
|
-
timestamp: string;
|
130
|
-
}
|
131
|
-
interface GetGroupInfo {
|
132
|
-
group: Group;
|
133
|
-
chat: Chat;
|
134
|
-
timestamp: string;
|
135
|
-
}
|
136
|
-
interface GetGroupAdminMembers {
|
137
|
-
in_chat_members: {
|
138
|
-
member_type: string;
|
139
|
-
member_guid: string;
|
140
|
-
first_name: string;
|
141
|
-
avatar_thumbnail: AvatarThumbnail;
|
142
|
-
is_verified: boolean;
|
143
|
-
is_deleted: boolean;
|
144
|
-
last_online: number;
|
145
|
-
promoted_by_object_guid: string;
|
146
|
-
promoted_by_object_type: string;
|
147
|
-
join_type: string;
|
148
|
-
username: string;
|
149
|
-
online_time: OnlineTime;
|
150
|
-
}[];
|
151
|
-
next_start_id: string;
|
152
|
-
has_continue: boolean;
|
153
|
-
timestamp: string;
|
154
|
-
}
|
155
|
-
export { AddGroup, DeleteNoAccessGroupChat, CreateGroupVoiceChat, AddGroupMembers, BanGroupMember, GetBannedGroupMembers, GetGroupInfo, GetGroupAdminMembers, };
|
package/rubjs/types/index.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as DecoratorsTypes from "./decorators";
|
2
|
-
import * as UserTypes from "./users";
|
3
|
-
import * as AuthTypes from "./auth";
|
4
|
-
import * as MessagesTypes from "./messages";
|
5
|
-
import * as GroupTypes from "./groups";
|
6
|
-
import * as ChatTypes from "./chats";
|
7
|
-
import Message from "./message";
|
8
|
-
export { DecoratorsTypes, UserTypes, MessagesTypes, AuthTypes, GroupTypes, ChatTypes, Message, };
|
package/rubjs/types/index.js
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
19
|
-
var ownKeys = function(o) {
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
21
|
-
var ar = [];
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
23
|
-
return ar;
|
24
|
-
};
|
25
|
-
return ownKeys(o);
|
26
|
-
};
|
27
|
-
return function (mod) {
|
28
|
-
if (mod && mod.__esModule) return mod;
|
29
|
-
var result = {};
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
31
|
-
__setModuleDefault(result, mod);
|
32
|
-
return result;
|
33
|
-
};
|
34
|
-
})();
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
37
|
-
};
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
-
exports.Message = exports.ChatTypes = exports.GroupTypes = exports.AuthTypes = exports.MessagesTypes = exports.UserTypes = exports.DecoratorsTypes = void 0;
|
40
|
-
const DecoratorsTypes = __importStar(require("./decorators"));
|
41
|
-
exports.DecoratorsTypes = DecoratorsTypes;
|
42
|
-
const UserTypes = __importStar(require("./users"));
|
43
|
-
exports.UserTypes = UserTypes;
|
44
|
-
const AuthTypes = __importStar(require("./auth"));
|
45
|
-
exports.AuthTypes = AuthTypes;
|
46
|
-
const MessagesTypes = __importStar(require("./messages"));
|
47
|
-
exports.MessagesTypes = MessagesTypes;
|
48
|
-
const GroupTypes = __importStar(require("./groups"));
|
49
|
-
exports.GroupTypes = GroupTypes;
|
50
|
-
const ChatTypes = __importStar(require("./chats"));
|
51
|
-
exports.ChatTypes = ChatTypes;
|
52
|
-
const message_1 = __importDefault(require("./message"));
|
53
|
-
exports.Message = message_1.default;
|
package/rubjs/types/message.d.ts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import { Types, Client } from "..";
|
2
|
-
declare class Message implements Types.DecoratorsTypes.MessageUpdate {
|
3
|
-
message_id: string;
|
4
|
-
action: string;
|
5
|
-
message: Types.DecoratorsTypes.Message;
|
6
|
-
updated_parameters: any[];
|
7
|
-
timestamp: string;
|
8
|
-
prev_message_id: string;
|
9
|
-
object_guid: string;
|
10
|
-
type: string;
|
11
|
-
state: string;
|
12
|
-
client_guid: string;
|
13
|
-
client: Client;
|
14
|
-
originalType: string;
|
15
|
-
constructor(client: Client, update: Types.DecoratorsTypes.MessageUpdate);
|
16
|
-
reply(text?: string, object_guid?: string, message_id?: string, auto_delete?: number, file_inline?: string | Buffer<ArrayBufferLike>, type?: string, is_spoil?: boolean, thumb?: string, audio_info?: boolean): Promise<Types.MessagesTypes.SendMessageResult>;
|
17
|
-
pin(object_guid?: string, message_id?: string, action?: "Pin" | "Unpin"): Promise<Types.MessagesTypes.SetPinMessage>;
|
18
|
-
reply_photo(photo: string | Buffer<ArrayBufferLike>, caption?: string, object_guid?: string, auto_delete?: number, reply_to_message_id?: string, is_spoil?: boolean, thumb?: string): Promise<Types.MessagesTypes.SendMessageResult>;
|
19
|
-
forward(to_object_guid: string): Promise<Types.MessagesTypes.ForwardMessages>;
|
20
|
-
delete(): Promise<Types.MessagesTypes.DeleteMessage>;
|
21
|
-
reaction(reaction_id: number, object_guid?: string, message_id?: string, action?: "Add" | "Remove"): Promise<{
|
22
|
-
reactions: Types.MessagesTypes.Reaction[];
|
23
|
-
}>;
|
24
|
-
getReplyMessage(object_guid?: string, message_id?: string): Promise<Types.MessagesTypes.Message>;
|
25
|
-
}
|
26
|
-
export default Message;
|
package/rubjs/types/message.js
DELETED
@@ -1,81 +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
|
-
const getOriginalType = (message) => {
|
13
|
-
var _a;
|
14
|
-
if (!((_a = message === null || message === void 0 ? void 0 : message.message) === null || _a === void 0 ? void 0 : _a.type))
|
15
|
-
return "Delete";
|
16
|
-
if (message.message.type.includes("FileInline")) {
|
17
|
-
return message.message.file_inline.type;
|
18
|
-
}
|
19
|
-
if (message.message.type === "Event") {
|
20
|
-
return message.message.event_data.type;
|
21
|
-
}
|
22
|
-
return message.message.type;
|
23
|
-
};
|
24
|
-
class Message {
|
25
|
-
constructor(client, update) {
|
26
|
-
Object.assign(this, update);
|
27
|
-
Object.defineProperty(this, "client", {
|
28
|
-
value: client,
|
29
|
-
enumerable: false,
|
30
|
-
writable: true,
|
31
|
-
configurable: true,
|
32
|
-
});
|
33
|
-
Object.defineProperty(this, "originalType", {
|
34
|
-
value: getOriginalType(update),
|
35
|
-
enumerable: false,
|
36
|
-
writable: true,
|
37
|
-
configurable: true,
|
38
|
-
});
|
39
|
-
}
|
40
|
-
reply(text, object_guid, message_id, auto_delete, file_inline, type, is_spoil, thumb, audio_info) {
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
42
|
-
return yield this.client.sendMessage(object_guid || this.object_guid, text, message_id || this.message_id, file_inline, type, is_spoil, thumb, audio_info, auto_delete);
|
43
|
-
});
|
44
|
-
}
|
45
|
-
pin(object_guid_1, message_id_1) {
|
46
|
-
return __awaiter(this, arguments, void 0, function* (object_guid, message_id, action = "Pin") {
|
47
|
-
return yield this.client.setPinMessage(object_guid || this.object_guid, message_id || this.message_id, action);
|
48
|
-
});
|
49
|
-
}
|
50
|
-
reply_photo(photo, caption, object_guid, auto_delete, reply_to_message_id, is_spoil, thumb) {
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
52
|
-
return yield this.reply(caption, object_guid, reply_to_message_id, auto_delete, photo, "Image", is_spoil, thumb);
|
53
|
-
});
|
54
|
-
}
|
55
|
-
forward(to_object_guid) {
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
return yield this.client.forwardMessages(this.object_guid, to_object_guid, [
|
58
|
-
this.message_id,
|
59
|
-
]);
|
60
|
-
});
|
61
|
-
}
|
62
|
-
delete() {
|
63
|
-
return __awaiter(this, void 0, void 0, function* () {
|
64
|
-
return yield this.client.deleteMessages(this.object_guid, [
|
65
|
-
this.message_id,
|
66
|
-
]);
|
67
|
-
});
|
68
|
-
}
|
69
|
-
reaction(reaction_id_1, object_guid_1, message_id_1) {
|
70
|
-
return __awaiter(this, arguments, void 0, function* (reaction_id, object_guid, message_id, action = "Add") {
|
71
|
-
return yield this.client.actionOnMessageReaction(object_guid || this.object_guid, message_id || this.message_id, reaction_id, action);
|
72
|
-
});
|
73
|
-
}
|
74
|
-
getReplyMessage(object_guid, message_id) {
|
75
|
-
return __awaiter(this, void 0, void 0, function* () {
|
76
|
-
const result = yield this.client.getMessagesByID(object_guid || this.object_guid, message_id || [this.message.reply_to_message_id]);
|
77
|
-
return result.messages[0];
|
78
|
-
});
|
79
|
-
}
|
80
|
-
}
|
81
|
-
exports.default = Message;
|