rubjs 2.2.3 → 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/README.md +1 -1
- 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 -186
- package/rubjs/methods/index.js +0 -923
- 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 -134
- 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 -3
- 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/index.d.ts +0 -6
- package/rubjs/methods/utilities/index.js +0 -16
- 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 -5
- package/rubjs/methods/utilities/thumbnail.js +0 -61
- package/rubjs/network/index.d.ts +0 -37
- package/rubjs/network/index.js +0 -284
- package/rubjs/parser/index.d.ts +0 -25
- package/rubjs/parser/index.js +0 -110
- 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 -18
- package/rubjs/types/message.js +0 -31
- 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
package/rubjs/parser/index.js
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
class Markdown {
|
4
|
-
static toMetadata(text) {
|
5
|
-
let entities = [];
|
6
|
-
let match;
|
7
|
-
let remainingText = text;
|
8
|
-
let parsedTextParts = [];
|
9
|
-
let offset = 0;
|
10
|
-
while ((match = remainingText.match(this.markdownRegExp))) {
|
11
|
-
const matchIndex = offset + (match.index || 0);
|
12
|
-
parsedTextParts.push(remainingText.substring(0, match.index));
|
13
|
-
let matchedContent = match[3] || match[8] || match[11] || match[13];
|
14
|
-
if (matchedContent) {
|
15
|
-
offset -= matchedContent.length;
|
16
|
-
matchedContent = matchedContent.trim();
|
17
|
-
offset += matchedContent.length;
|
18
|
-
if (/^`*$/.test(matchedContent)) {
|
19
|
-
parsedTextParts.push(match[0]);
|
20
|
-
}
|
21
|
-
else if (match[3]) {
|
22
|
-
if (match[5] === "\n") {
|
23
|
-
match[5] = "";
|
24
|
-
offset -= 1;
|
25
|
-
}
|
26
|
-
parsedTextParts.push(match[1] + matchedContent + match[5]);
|
27
|
-
entities.push({
|
28
|
-
type: "Pre",
|
29
|
-
language: "",
|
30
|
-
from_index: matchIndex + match[1].length,
|
31
|
-
length: matchedContent.length,
|
32
|
-
});
|
33
|
-
offset -= match[2].length + match[4].length;
|
34
|
-
}
|
35
|
-
else if (match[7]) {
|
36
|
-
parsedTextParts.push(match[6] + matchedContent + match[9]);
|
37
|
-
entities.push({
|
38
|
-
type: this.markdownEntities[match[7]],
|
39
|
-
from_index: matchIndex + match[6].length,
|
40
|
-
length: matchedContent.length,
|
41
|
-
});
|
42
|
-
offset -= 2 * match[7].length;
|
43
|
-
}
|
44
|
-
else if (match[11]) {
|
45
|
-
parsedTextParts.push(matchedContent);
|
46
|
-
entities.push({
|
47
|
-
type: "MentionText",
|
48
|
-
mention_text_object_guid: match[10],
|
49
|
-
from_index: matchIndex,
|
50
|
-
length: matchedContent.length,
|
51
|
-
mention_text_object_type: "User",
|
52
|
-
});
|
53
|
-
offset -= match[0].length - matchedContent.length;
|
54
|
-
}
|
55
|
-
else if (match[12]) {
|
56
|
-
const [label, url] = [match[12], match[13]];
|
57
|
-
let mentionType;
|
58
|
-
if (url.length === 32) {
|
59
|
-
if (url.startsWith("u"))
|
60
|
-
mentionType = "User";
|
61
|
-
else if (url.startsWith("g"))
|
62
|
-
mentionType = "Group";
|
63
|
-
else if (url.startsWith("c"))
|
64
|
-
mentionType = "Channel";
|
65
|
-
}
|
66
|
-
parsedTextParts.push(label);
|
67
|
-
const metaDataPart = {
|
68
|
-
type: mentionType ? "MentionText" : "Link",
|
69
|
-
from_index: matchIndex,
|
70
|
-
length: label.length,
|
71
|
-
};
|
72
|
-
if (mentionType) {
|
73
|
-
metaDataPart.mention_text_object_guid = url;
|
74
|
-
metaDataPart.mention_text_object_type = mentionType;
|
75
|
-
}
|
76
|
-
else {
|
77
|
-
metaDataPart.link = { type: "hyperlink", hyperlink_data: { url } };
|
78
|
-
}
|
79
|
-
entities.push(metaDataPart);
|
80
|
-
offset -= match[0].length - label.length;
|
81
|
-
}
|
82
|
-
remainingText = remainingText.substring(match.index + match[0].length);
|
83
|
-
offset += match.index + match[0].length;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
parsedTextParts.push(remainingText);
|
87
|
-
let resultText = parsedTextParts.join("");
|
88
|
-
if (!resultText.replace(/\s+/g, "").length) {
|
89
|
-
resultText = text;
|
90
|
-
entities.splice(0, entities.length);
|
91
|
-
}
|
92
|
-
if (!entities.length) {
|
93
|
-
resultText = resultText.trim();
|
94
|
-
}
|
95
|
-
return {
|
96
|
-
text: resultText,
|
97
|
-
metadata: { meta_data_parts: entities },
|
98
|
-
};
|
99
|
-
}
|
100
|
-
}
|
101
|
-
Markdown.markdownRegExp = /(^|\s|\n)(````?)([\s\S]+?)(````?)([\s\n\.,:?!;]|$)|(^|\s)(`|\*\*|__|~~|--|\|\|)([^\n]+?)\7([\s\.,:?!;]|$)|@([a-zA-Z0-9]+)\s*\((.+?)\)|\[(.+?)\]\((.+?)\)/m;
|
102
|
-
Markdown.markdownEntities = {
|
103
|
-
"`": "Mono",
|
104
|
-
"**": "Bold",
|
105
|
-
__: "Italic",
|
106
|
-
"||": "Spoiler",
|
107
|
-
"~~": "Strike",
|
108
|
-
"--": "Underline",
|
109
|
-
};
|
110
|
-
exports.default = Markdown;
|
package/rubjs/session/index.d.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
interface SessionData {
|
2
|
-
phone: string;
|
3
|
-
auth: string;
|
4
|
-
guid: string;
|
5
|
-
agent: string;
|
6
|
-
private_key: string;
|
7
|
-
}
|
8
|
-
declare class SQLiteSession {
|
9
|
-
private dbFile;
|
10
|
-
private db;
|
11
|
-
constructor(sessionName: string);
|
12
|
-
private handleError;
|
13
|
-
private initializeDB;
|
14
|
-
getSession(): SessionData | null;
|
15
|
-
saveSession(phone: string, auth: string, guid: string, agent: string, privateKey: string): void;
|
16
|
-
closeDB(): void;
|
17
|
-
}
|
18
|
-
export default SQLiteSession;
|
package/rubjs/session/index.js
DELETED
@@ -1,57 +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
|
-
const better_sqlite3_1 = __importDefault(require("better-sqlite3"));
|
7
|
-
class SQLiteSession {
|
8
|
-
constructor(sessionName) {
|
9
|
-
this.dbFile = sessionName.endsWith(".rp") ? sessionName : `${sessionName}.rp`;
|
10
|
-
this.db = new better_sqlite3_1.default(this.dbFile);
|
11
|
-
this.initializeDB();
|
12
|
-
}
|
13
|
-
handleError(operation, callback) {
|
14
|
-
try {
|
15
|
-
return callback();
|
16
|
-
}
|
17
|
-
catch (error) {
|
18
|
-
console.error(`Error in ${operation}:`, error);
|
19
|
-
throw new Error(`Failed to execute ${operation}`);
|
20
|
-
}
|
21
|
-
}
|
22
|
-
initializeDB() {
|
23
|
-
this.handleError("initializeDB", () => {
|
24
|
-
this.db.pragma("journal_mode = DELETE");
|
25
|
-
const sessionTable = this.db
|
26
|
-
.prepare("SELECT name FROM sqlite_master WHERE type=? AND name=?")
|
27
|
-
.get("table", "session");
|
28
|
-
if (!sessionTable) {
|
29
|
-
this.db.prepare(`CREATE TABLE session (
|
30
|
-
phone TEXT PRIMARY KEY,
|
31
|
-
auth TEXT,
|
32
|
-
guid TEXT,
|
33
|
-
agent TEXT,
|
34
|
-
private_key TEXT
|
35
|
-
)`).run();
|
36
|
-
}
|
37
|
-
});
|
38
|
-
}
|
39
|
-
getSession() {
|
40
|
-
return this.handleError("getSession", () => {
|
41
|
-
const result = this.db.prepare("SELECT * FROM session").get();
|
42
|
-
return result ? result : null;
|
43
|
-
});
|
44
|
-
}
|
45
|
-
saveSession(phone, auth, guid, agent, privateKey) {
|
46
|
-
this.handleError("saveSession", () => {
|
47
|
-
this.db.prepare(`INSERT OR REPLACE INTO session (phone, auth, guid, agent, private_key)
|
48
|
-
VALUES (?, ?, ?, ?, ?)`).run(phone, auth, guid, agent, privateKey);
|
49
|
-
});
|
50
|
-
}
|
51
|
-
closeDB() {
|
52
|
-
this.handleError("closeDB", () => {
|
53
|
-
this.db.close();
|
54
|
-
});
|
55
|
-
}
|
56
|
-
}
|
57
|
-
exports.default = SQLiteSession;
|
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/auth.js
DELETED
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 };
|
package/rubjs/types/chats.js
DELETED
@@ -1,168 +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_object_guid: string;
|
96
|
-
allow_transcription?: boolean;
|
97
|
-
file_inline?: FileInline;
|
98
|
-
contact_message: ContactMessage;
|
99
|
-
live_data: LiveData;
|
100
|
-
poll: PollData;
|
101
|
-
location: Location;
|
102
|
-
event_data: EventData;
|
103
|
-
forwarded_from?: {
|
104
|
-
type_from: string;
|
105
|
-
message_id: string;
|
106
|
-
object_guid: string;
|
107
|
-
};
|
108
|
-
metadata?: MetaData;
|
109
|
-
count_seen?: string;
|
110
|
-
thumb_inline?: string;
|
111
|
-
}
|
112
|
-
interface MessageUpdate {
|
113
|
-
message_id: string;
|
114
|
-
action: string;
|
115
|
-
message: Message;
|
116
|
-
updated_parameters: any[];
|
117
|
-
timestamp: string;
|
118
|
-
prev_message_id: string;
|
119
|
-
object_guid: string;
|
120
|
-
type: string;
|
121
|
-
state: string;
|
122
|
-
}
|
123
|
-
interface ChatUpdates {
|
124
|
-
object_guid: string;
|
125
|
-
action: string;
|
126
|
-
chat: {
|
127
|
-
time_string: string;
|
128
|
-
last_message: {
|
129
|
-
message_id: string;
|
130
|
-
type: string;
|
131
|
-
text: string;
|
132
|
-
author_object_guid?: string;
|
133
|
-
is_mine: boolean;
|
134
|
-
author_title?: string;
|
135
|
-
author_type?: string;
|
136
|
-
};
|
137
|
-
last_seen_peer_mid?: string;
|
138
|
-
last_seen_my_mid?: string;
|
139
|
-
status?: string;
|
140
|
-
time: number;
|
141
|
-
last_message_id: string;
|
142
|
-
group_voice_chat_id?: string;
|
143
|
-
};
|
144
|
-
updated_parameters: string[];
|
145
|
-
timestamp: string;
|
146
|
-
type: string;
|
147
|
-
}
|
148
|
-
interface ShowActivities {
|
149
|
-
type: string;
|
150
|
-
object_guid: string;
|
151
|
-
object_type: string;
|
152
|
-
user_activity_guid: string;
|
153
|
-
}
|
154
|
-
interface ShowNotifications {
|
155
|
-
notification_id: string;
|
156
|
-
type: string;
|
157
|
-
title: string;
|
158
|
-
text: string;
|
159
|
-
image_file_id?: number;
|
160
|
-
message_data: {
|
161
|
-
object_guid: string;
|
162
|
-
object_type: string;
|
163
|
-
message_id: number;
|
164
|
-
sender_guid?: string;
|
165
|
-
};
|
166
|
-
}
|
167
|
-
export { MessageUpdate, ChatUpdates, ShowActivities, ShowNotifications, Message, FileInline };
|
168
|
-
export default MessageUpdate;
|
package/rubjs/types/groups.d.ts
DELETED
@@ -1,129 +0,0 @@
|
|
1
|
-
import MessageUpdate, { ChatUpdates } from "./decorators";
|
2
|
-
interface ChatReactionSetting {
|
3
|
-
reaction_type: string;
|
4
|
-
}
|
5
|
-
interface Group {
|
6
|
-
group_guid: string;
|
7
|
-
group_title: string;
|
8
|
-
count_members: number;
|
9
|
-
is_deleted: boolean;
|
10
|
-
is_verified: boolean;
|
11
|
-
slow_mode: number;
|
12
|
-
chat_history_for_new_members: string;
|
13
|
-
event_messages: boolean;
|
14
|
-
chat_reaction_setting: ChatReactionSetting;
|
15
|
-
is_restricted_content: boolean;
|
16
|
-
}
|
17
|
-
interface Chat {
|
18
|
-
object_guid: string;
|
19
|
-
access: string[];
|
20
|
-
count_unseen: number;
|
21
|
-
is_mute: boolean;
|
22
|
-
is_pinned: boolean;
|
23
|
-
time_string: string;
|
24
|
-
last_message: {
|
25
|
-
message_id: string;
|
26
|
-
type: string;
|
27
|
-
text: string;
|
28
|
-
};
|
29
|
-
last_seen_my_mid: string;
|
30
|
-
last_seen_peer_mid: string;
|
31
|
-
status: string;
|
32
|
-
time: number;
|
33
|
-
abs_object: {
|
34
|
-
object_guid: string;
|
35
|
-
type: string;
|
36
|
-
title: string;
|
37
|
-
is_verified: boolean;
|
38
|
-
is_deleted: boolean;
|
39
|
-
};
|
40
|
-
is_blocked: boolean;
|
41
|
-
last_message_id: string;
|
42
|
-
last_deleted_mid: string;
|
43
|
-
slow_mode_duration: number;
|
44
|
-
}
|
45
|
-
interface ChatUpdate {
|
46
|
-
object_guid: string;
|
47
|
-
action: string;
|
48
|
-
updated_parameters: [];
|
49
|
-
timestamp: string;
|
50
|
-
type: string;
|
51
|
-
chat?: Chat;
|
52
|
-
}
|
53
|
-
interface GroupVoiceChat {
|
54
|
-
voice_chat_id: string;
|
55
|
-
state: string;
|
56
|
-
join_muted: boolean;
|
57
|
-
participant_count: number;
|
58
|
-
title: string;
|
59
|
-
version: number;
|
60
|
-
}
|
61
|
-
interface GroupVoiceChatUpdate {
|
62
|
-
voice_chat_id: string;
|
63
|
-
group_guid: string;
|
64
|
-
action: string;
|
65
|
-
group_voice_chat: GroupVoiceChat;
|
66
|
-
updated_parameters: [];
|
67
|
-
timestamp: string;
|
68
|
-
chat_guid_type: {
|
69
|
-
type: string;
|
70
|
-
object_guid: string;
|
71
|
-
};
|
72
|
-
}
|
73
|
-
interface GroupMember {
|
74
|
-
member_type: string;
|
75
|
-
member_guid: string;
|
76
|
-
first_name: string;
|
77
|
-
last_name: string;
|
78
|
-
avatar_thumbnail: {
|
79
|
-
file_id: string;
|
80
|
-
mime: string;
|
81
|
-
dc_id: string;
|
82
|
-
access_hash_rec: string;
|
83
|
-
};
|
84
|
-
is_verified: boolean;
|
85
|
-
is_deleted: boolean;
|
86
|
-
last_online: number;
|
87
|
-
join_type: string;
|
88
|
-
username: string;
|
89
|
-
online_time: {
|
90
|
-
type: string;
|
91
|
-
exact_time: number;
|
92
|
-
};
|
93
|
-
}
|
94
|
-
interface AddGroup {
|
95
|
-
group: Group;
|
96
|
-
chat_update: ChatUpdate;
|
97
|
-
message_update: MessageUpdate;
|
98
|
-
timestamp: string;
|
99
|
-
}
|
100
|
-
interface DeleteNoAccessGroupChat {
|
101
|
-
chat_update: ChatUpdate;
|
102
|
-
status: string;
|
103
|
-
}
|
104
|
-
interface CreateGroupVoiceChat {
|
105
|
-
status: string;
|
106
|
-
chat_update: ChatUpdates;
|
107
|
-
message_update: MessageUpdate;
|
108
|
-
group_voice_chat_update: GroupVoiceChatUpdate;
|
109
|
-
}
|
110
|
-
interface AddGroupMembers {
|
111
|
-
chat_update: ChatUpdates;
|
112
|
-
message_update: MessageUpdate;
|
113
|
-
added_in_chat_members: GroupMember[];
|
114
|
-
timestamp: string;
|
115
|
-
group: Group;
|
116
|
-
}
|
117
|
-
interface BanGroupMember {
|
118
|
-
chat_update: ChatUpdates;
|
119
|
-
message_update: MessageUpdate;
|
120
|
-
timestamp: string;
|
121
|
-
group: Group;
|
122
|
-
}
|
123
|
-
interface GetBannedGroupMembers {
|
124
|
-
in_chat_members: GroupMember[];
|
125
|
-
next_start_id: "67b0e8bc1b50d7bec6fc950b";
|
126
|
-
has_continue: false;
|
127
|
-
timestamp: "1739888215";
|
128
|
-
}
|
129
|
-
export { AddGroup, DeleteNoAccessGroupChat, CreateGroupVoiceChat, AddGroupMembers, BanGroupMember, GetBannedGroupMembers };
|
package/rubjs/types/groups.js
DELETED
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,18 +0,0 @@
|
|
1
|
-
import Client from "..";
|
2
|
-
import { MessageUpdate, Message as MessageType } from "./decorators";
|
3
|
-
declare class Message implements MessageUpdate {
|
4
|
-
message_id: string;
|
5
|
-
action: string;
|
6
|
-
message: MessageType;
|
7
|
-
updated_parameters: any[];
|
8
|
-
timestamp: string;
|
9
|
-
prev_message_id: string;
|
10
|
-
object_guid: string;
|
11
|
-
type: string;
|
12
|
-
state: string;
|
13
|
-
client: Client;
|
14
|
-
constructor(client: Client, update: MessageUpdate);
|
15
|
-
log(): void;
|
16
|
-
reply(text: string, object_guid?: string, message_id?: string): Promise<import("./messages").SendMessageResult>;
|
17
|
-
}
|
18
|
-
export default Message;
|