rubjs 1.1.0 → 2.4.0
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 +55 -0
- package/package.json +1 -1
- package/rubjs/client.d.ts +1 -0
- package/rubjs/client.js +3 -2
- package/rubjs/index.d.ts +5 -2
- package/rubjs/index.js +41 -1
- package/rubjs/methods/auth/index.d.ts +5 -4
- package/rubjs/methods/auth/index.js +9 -7
- package/rubjs/methods/auth/logout.d.ts +3 -0
- package/rubjs/methods/{messages/send_text.js → auth/logout.js} +3 -3
- package/rubjs/methods/auth/registerDevice.d.ts +3 -0
- package/rubjs/methods/auth/{register_device.js → registerDevice.js} +2 -2
- package/rubjs/methods/auth/sendCode.d.ts +3 -0
- package/rubjs/methods/auth/{send_code.js → sendCode.js} +2 -2
- package/rubjs/methods/auth/signIn.d.ts +3 -0
- package/rubjs/methods/auth/{sign_in.js → signIn.js} +2 -2
- package/rubjs/methods/channels/addChannel.d.ts +3 -0
- package/rubjs/methods/channels/addChannel.js +26 -0
- package/rubjs/methods/channels/addChannelMembers.d.ts +3 -0
- package/rubjs/methods/channels/addChannelMembers.js +22 -0
- package/rubjs/methods/channels/banChannelMember.d.ts +3 -0
- package/rubjs/methods/channels/banChannelMember.js +23 -0
- package/rubjs/methods/channels/cancelChangeObjectOwner.d.ts +3 -0
- package/rubjs/methods/channels/cancelChangeObjectOwner.js +17 -0
- package/rubjs/methods/channels/channelPreviewByJoinLink.d.ts +3 -0
- package/rubjs/methods/{messages/send_photo.js → channels/channelPreviewByJoinLink.js} +5 -3
- package/rubjs/methods/channels/checkChannelUsername.d.ts +3 -0
- package/rubjs/methods/channels/checkChannelUsername.js +19 -0
- package/rubjs/methods/channels/createChannelVoiceChat.d.ts +3 -0
- package/rubjs/methods/channels/createChannelVoiceChat.js +17 -0
- package/rubjs/methods/channels/discardChannelVoiceChat.d.ts +3 -0
- package/rubjs/methods/channels/discardChannelVoiceChat.js +20 -0
- package/rubjs/methods/channels/editChannelInfo.d.ts +4 -0
- package/rubjs/methods/channels/editChannelInfo.js +48 -0
- package/rubjs/methods/channels/getBannedChannelMembers.d.ts +3 -0
- package/rubjs/methods/channels/getBannedChannelMembers.js +20 -0
- package/rubjs/methods/channels/getChannelAdminAccessList.d.ts +3 -0
- package/rubjs/methods/channels/getChannelAdminAccessList.js +20 -0
- package/rubjs/methods/channels/getChannelAdminMembers.d.ts +3 -0
- package/rubjs/methods/channels/getChannelAdminMembers.js +20 -0
- package/rubjs/methods/channels/getChannelAllMembers.d.ts +3 -0
- package/rubjs/methods/channels/getChannelAllMembers.js +21 -0
- package/rubjs/methods/channels/getChannelInfo.d.ts +3 -0
- package/rubjs/methods/channels/getChannelInfo.js +17 -0
- package/rubjs/methods/channels/getChannelLink.d.ts +3 -0
- package/rubjs/methods/channels/getChannelLink.js +17 -0
- package/rubjs/methods/channels/getPendingObjectOwner.d.ts +3 -0
- package/rubjs/methods/channels/getPendingObjectOwner.js +17 -0
- package/rubjs/methods/channels/index.d.ts +26 -0
- package/rubjs/methods/channels/index.js +56 -0
- package/rubjs/methods/channels/joinChannelAction.d.ts +3 -0
- package/rubjs/methods/channels/joinChannelAction.js +19 -0
- package/rubjs/methods/channels/joinChannelByLink.d.ts +3 -0
- package/rubjs/methods/channels/joinChannelByLink.js +19 -0
- package/rubjs/methods/channels/leaveChannelVoiceChat.d.ts +3 -0
- package/rubjs/methods/channels/leaveChannelVoiceChat.js +20 -0
- package/rubjs/methods/channels/removeChannel.d.ts +3 -0
- package/rubjs/methods/channels/removeChannel.js +17 -0
- package/rubjs/methods/channels/requestChangeObjectOwner.d.ts +3 -0
- package/rubjs/methods/{messages/edit_message.js → channels/requestChangeObjectOwner.js} +5 -7
- package/rubjs/methods/channels/seenChannelMessages.d.ts +3 -0
- package/rubjs/methods/channels/seenChannelMessages.js +21 -0
- package/rubjs/methods/channels/setChannelLink.d.ts +3 -0
- package/rubjs/methods/channels/setChannelLink.js +17 -0
- package/rubjs/methods/channels/setChannelVoiceChatSetting.d.ts +3 -0
- package/rubjs/methods/channels/setChannelVoiceChatSetting.js +26 -0
- package/rubjs/methods/channels/updateChannelUsername.d.ts +3 -0
- package/rubjs/methods/channels/updateChannelUsername.js +20 -0
- package/rubjs/methods/chats/actionOnJoinRequest.d.ts +3 -0
- package/rubjs/methods/chats/actionOnJoinRequest.js +22 -0
- package/rubjs/methods/chats/addLiveComment.d.ts +3 -0
- package/rubjs/methods/chats/addLiveComment.js +17 -0
- package/rubjs/methods/chats/clickMessageUrl.d.ts +3 -0
- package/rubjs/methods/chats/clickMessageUrl.js +17 -0
- package/rubjs/methods/chats/createJoinLink.d.ts +3 -0
- package/rubjs/methods/chats/createJoinLink.js +23 -0
- package/rubjs/methods/chats/deleteAvatar.d.ts +3 -0
- package/rubjs/methods/chats/deleteAvatar.js +17 -0
- package/rubjs/methods/chats/deleteChatHistory.d.ts +3 -0
- package/rubjs/methods/chats/deleteChatHistory.js +20 -0
- package/rubjs/methods/chats/editJoinLink.d.ts +3 -0
- package/rubjs/methods/chats/editJoinLink.js +34 -0
- package/rubjs/methods/chats/getAbsObjects.d.ts +3 -0
- package/rubjs/methods/chats/getAbsObjects.js +19 -0
- package/rubjs/methods/chats/getAvatars.d.ts +3 -0
- package/rubjs/methods/chats/getAvatars.js +17 -0
- package/rubjs/methods/chats/getChatReaction.d.ts +3 -0
- package/rubjs/methods/chats/getChatReaction.js +17 -0
- package/rubjs/methods/chats/getChats.d.ts +3 -0
- package/rubjs/methods/chats/getChats.js +17 -0
- package/rubjs/methods/chats/getChatsUpdates.d.ts +3 -0
- package/rubjs/methods/chats/getChatsUpdates.js +17 -0
- package/rubjs/methods/chats/getJoinLinks.d.ts +3 -0
- package/rubjs/methods/chats/getJoinLinks.js +17 -0
- package/rubjs/methods/chats/getJoinRequests.d.ts +3 -0
- package/rubjs/methods/chats/getJoinRequests.js +17 -0
- package/rubjs/methods/chats/getLinkFromAppUrl.d.ts +3 -0
- package/rubjs/methods/chats/getLinkFromAppUrl.js +17 -0
- package/rubjs/methods/chats/getLiveComments.d.ts +3 -0
- package/rubjs/methods/chats/getLiveComments.js +17 -0
- package/rubjs/methods/chats/getLivePlayUrl.d.ts +3 -0
- package/rubjs/methods/chats/getLivePlayUrl.js +17 -0
- package/rubjs/methods/chats/getLiveStatus.d.ts +3 -0
- package/rubjs/methods/chats/getLiveStatus.js +17 -0
- package/rubjs/methods/chats/getObjectInfoByUsername.d.ts +3 -0
- package/rubjs/methods/chats/getObjectInfoByUsername.js +19 -0
- package/rubjs/methods/chats/getTopChatUsers.d.ts +3 -0
- package/rubjs/methods/chats/getTopChatUsers.js +18 -0
- package/rubjs/methods/chats/index.d.ts +29 -0
- package/rubjs/methods/chats/index.js +62 -0
- package/rubjs/methods/chats/removeFromTopChatUsers.d.ts +3 -0
- package/rubjs/methods/chats/removeFromTopChatUsers.js +17 -0
- package/rubjs/methods/chats/removeJoinLink.d.ts +3 -0
- package/rubjs/methods/chats/removeJoinLink.js +19 -0
- package/rubjs/methods/chats/searchChatMessages.d.ts +3 -0
- package/rubjs/methods/chats/searchChatMessages.js +23 -0
- package/rubjs/methods/chats/searchGlobalMessages.d.ts +3 -0
- package/rubjs/methods/chats/searchGlobalMessages.js +17 -0
- package/rubjs/methods/chats/seenChats.d.ts +3 -0
- package/rubjs/methods/chats/seenChats.js +17 -0
- package/rubjs/methods/chats/sendChatActivity.d.ts +3 -0
- package/rubjs/methods/chats/sendChatActivity.js +19 -0
- package/rubjs/methods/chats/sendLive.d.ts +3 -0
- package/rubjs/methods/chats/sendLive.js +28 -0
- package/rubjs/methods/chats/setActionChat.d.ts +3 -0
- package/rubjs/methods/chats/setActionChat.js +19 -0
- package/rubjs/methods/chats/uploadAvatar.d.ts +3 -0
- package/rubjs/methods/chats/uploadAvatar.js +29 -0
- package/rubjs/methods/contacts/addAddressBook.d.ts +3 -0
- package/rubjs/methods/contacts/addAddressBook.js +17 -0
- package/rubjs/methods/contacts/deleteContact.d.ts +3 -0
- package/rubjs/methods/contacts/deleteContact.js +17 -0
- package/rubjs/methods/contacts/getContacts.d.ts +3 -0
- package/rubjs/methods/contacts/getContacts.js +17 -0
- package/rubjs/methods/contacts/getContactsLastOnline.d.ts +3 -0
- package/rubjs/methods/contacts/getContactsLastOnline.js +17 -0
- package/rubjs/methods/contacts/getContactsUpdates.d.ts +3 -0
- package/rubjs/methods/contacts/getContactsUpdates.js +17 -0
- package/rubjs/methods/contacts/index.d.ts +7 -0
- package/rubjs/methods/contacts/index.js +18 -0
- package/rubjs/methods/contacts/resetContacts.d.ts +3 -0
- package/rubjs/methods/contacts/resetContacts.js +18 -0
- package/rubjs/methods/extras/banMember.d.ts +3 -0
- package/rubjs/methods/extras/banMember.js +20 -0
- package/rubjs/methods/extras/getInfo.d.ts +3 -0
- package/rubjs/methods/extras/getInfo.js +26 -0
- package/rubjs/methods/extras/getObjectByUsername.d.ts +3 -0
- package/rubjs/methods/extras/getObjectByUsername.js +19 -0
- package/rubjs/methods/extras/getProfileLinkItems.d.ts +3 -0
- package/rubjs/methods/extras/getProfileLinkItems.js +17 -0
- package/rubjs/methods/extras/getRelatedObjects.d.ts +3 -0
- package/rubjs/methods/extras/getRelatedObjects.js +17 -0
- package/rubjs/methods/extras/getTranscription.d.ts +3 -0
- package/rubjs/methods/extras/getTranscription.js +20 -0
- package/rubjs/methods/extras/index.d.ts +13 -0
- package/rubjs/methods/extras/index.js +30 -0
- package/rubjs/methods/extras/join.d.ts +3 -0
- package/rubjs/methods/extras/join.js +22 -0
- package/rubjs/methods/extras/leaveChat.d.ts +3 -0
- package/rubjs/methods/extras/leaveChat.js +20 -0
- package/rubjs/methods/extras/reportObject.d.ts +14 -0
- package/rubjs/methods/extras/reportObject.js +32 -0
- package/rubjs/methods/extras/searchGlobalObjects.d.ts +3 -0
- package/rubjs/methods/extras/searchGlobalObjects.js +17 -0
- package/rubjs/methods/extras/transcribeVoice.d.ts +3 -0
- package/rubjs/methods/extras/transcribeVoice.js +17 -0
- package/rubjs/methods/extras/userIsAdmin.d.ts +3 -0
- package/rubjs/methods/extras/userIsAdmin.js +29 -0
- package/rubjs/methods/gif/addToMyGifSet.d.ts +3 -0
- package/rubjs/methods/gif/addToMyGifSet.js +17 -0
- package/rubjs/methods/gif/getMyGifSet.d.ts +3 -0
- package/rubjs/methods/gif/getMyGifSet.js +17 -0
- package/rubjs/methods/gif/index.d.ts +4 -0
- package/rubjs/methods/gif/index.js +12 -0
- package/rubjs/methods/gif/removeFromMyGifSet.d.ts +3 -0
- package/rubjs/methods/gif/removeFromMyGifSet.js +17 -0
- package/rubjs/methods/groups/addGroup.d.ts +3 -0
- package/rubjs/methods/groups/addGroup.js +19 -0
- package/rubjs/methods/groups/addGroupMembers.d.ts +3 -0
- package/rubjs/methods/groups/addGroupMembers.js +19 -0
- package/rubjs/methods/groups/banGroupMember.d.ts +3 -0
- package/rubjs/methods/groups/banGroupMember.js +23 -0
- package/rubjs/methods/groups/createGroupVoiceChat.d.ts +3 -0
- package/rubjs/methods/groups/createGroupVoiceChat.js +17 -0
- package/rubjs/methods/groups/deleteNoAccessGroupChat.d.ts +3 -0
- package/rubjs/methods/groups/deleteNoAccessGroupChat.js +17 -0
- package/rubjs/methods/groups/discardGroupVoiceChat.d.ts +3 -0
- package/rubjs/methods/groups/discardGroupVoiceChat.js +20 -0
- package/rubjs/methods/groups/editGroupInfo.d.ts +6 -0
- package/rubjs/methods/groups/editGroupInfo.js +51 -0
- package/rubjs/methods/groups/getBannedGroupMembers.d.ts +3 -0
- package/rubjs/methods/groups/getBannedGroupMembers.js +17 -0
- package/rubjs/methods/groups/getGroupAdminAccessList.d.ts +3 -0
- package/rubjs/methods/groups/getGroupAdminAccessList.js +20 -0
- package/rubjs/methods/groups/getGroupAdminMembers.d.ts +3 -0
- package/rubjs/methods/groups/getGroupAdminMembers.js +17 -0
- package/rubjs/methods/groups/getGroupAllMembers.d.ts +3 -0
- package/rubjs/methods/groups/getGroupAllMembers.js +21 -0
- package/rubjs/methods/groups/getGroupDefaultAccess.d.ts +3 -0
- package/rubjs/methods/groups/getGroupDefaultAccess.js +17 -0
- package/rubjs/methods/groups/getGroupInfo.d.ts +3 -0
- package/rubjs/methods/groups/getGroupInfo.js +17 -0
- package/rubjs/methods/groups/getGroupLink.d.ts +3 -0
- package/rubjs/methods/groups/getGroupLink.js +17 -0
- package/rubjs/methods/groups/getGroupMentionList.d.ts +3 -0
- package/rubjs/methods/groups/getGroupMentionList.js +20 -0
- package/rubjs/methods/groups/getGroupOnlineCount.d.ts +3 -0
- package/rubjs/methods/groups/getGroupOnlineCount.js +17 -0
- package/rubjs/methods/groups/getGroupVoiceChatUpdates.d.ts +3 -0
- package/rubjs/methods/groups/getGroupVoiceChatUpdates.js +21 -0
- package/rubjs/methods/groups/groupPreviewByJoinLink.d.ts +3 -0
- package/rubjs/methods/groups/groupPreviewByJoinLink.js +19 -0
- package/rubjs/methods/groups/index.d.ts +28 -0
- package/rubjs/methods/groups/index.js +60 -0
- package/rubjs/methods/groups/joinGroup.d.ts +3 -0
- package/rubjs/methods/groups/joinGroup.js +19 -0
- package/rubjs/methods/groups/leaveGroup.d.ts +3 -0
- package/rubjs/methods/groups/leaveGroup.js +17 -0
- package/rubjs/methods/groups/leaveGroupVoiceChat.d.ts +3 -0
- package/rubjs/methods/groups/leaveGroupVoiceChat.js +20 -0
- package/rubjs/methods/groups/removeGroup.d.ts +3 -0
- package/rubjs/methods/groups/removeGroup.js +17 -0
- package/rubjs/methods/groups/seenGroupMessages.d.ts +3 -0
- package/rubjs/methods/groups/seenGroupMessages.js +21 -0
- package/rubjs/methods/groups/setGroupAdmin.d.ts +5 -0
- package/rubjs/methods/groups/setGroupAdmin.js +26 -0
- package/rubjs/methods/groups/setGroupDefaultAccess.d.ts +4 -0
- package/rubjs/methods/groups/setGroupDefaultAccess.js +22 -0
- package/rubjs/methods/groups/setGroupLink.d.ts +3 -0
- package/rubjs/methods/groups/setGroupLink.js +17 -0
- package/rubjs/methods/groups/setGroupVoiceChatSetting.d.ts +3 -0
- package/rubjs/methods/groups/setGroupVoiceChatSetting.js +26 -0
- package/rubjs/methods/index.d.ts +190 -41
- package/rubjs/methods/index.js +827 -57
- package/rubjs/methods/messages/actionOnMessageReaction.d.ts +3 -0
- package/rubjs/methods/messages/{action_on_message_reaction.js → actionOnMessageReaction.js} +2 -2
- package/rubjs/methods/messages/createPoll.d.ts +3 -0
- package/rubjs/methods/messages/{create_poll.js → createPoll.js} +2 -2
- package/rubjs/methods/messages/deleteMessages.d.ts +3 -0
- package/rubjs/methods/messages/{delete_messages.js → deleteMessages.js} +2 -2
- package/rubjs/methods/messages/editMessage.d.ts +3 -0
- package/rubjs/methods/messages/editMessage.js +23 -0
- package/rubjs/methods/messages/forwardMessages.d.ts +3 -0
- package/rubjs/methods/messages/{forward_messages.js → forwardMessages.js} +2 -2
- package/rubjs/methods/messages/getMessageShareUrl.d.ts +3 -0
- package/rubjs/methods/messages/{get_message_share_url.js → getMessageShareUrl.js} +2 -2
- package/rubjs/methods/messages/getMessages.d.ts +3 -0
- package/rubjs/methods/messages/getMessages.js +23 -0
- package/rubjs/methods/messages/getMessagesByID.d.ts +3 -0
- package/rubjs/methods/messages/{get_messages_by_id.js → getMessagesByID.js} +2 -2
- package/rubjs/methods/messages/getMessagesInterval.d.ts +3 -0
- package/rubjs/methods/messages/{get_messages_interval.js → getMessagesInterval.js} +2 -2
- package/rubjs/methods/messages/getMessagesUpdates.d.ts +3 -0
- package/rubjs/methods/messages/{get_messages_updates.js → getMessagesUpdates.js} +2 -2
- package/rubjs/methods/messages/getPollOptionVoters.d.ts +3 -0
- package/rubjs/methods/messages/{get_poll_option_voters.js → getPollOptionVoters.js} +2 -2
- package/rubjs/methods/messages/getPollStatus.d.ts +3 -0
- package/rubjs/methods/messages/{get_poll_status.js → getPollStatus.js} +2 -2
- package/rubjs/methods/messages/index.d.ts +26 -17
- package/rubjs/methods/messages/index.js +51 -33
- package/rubjs/methods/messages/requestSendFile.d.ts +4 -0
- package/rubjs/methods/{utilities/request_send_file.js → messages/requestSendFile.js} +2 -2
- package/rubjs/methods/messages/sendDocument.d.ts +3 -0
- package/rubjs/methods/messages/sendDocument.js +17 -0
- package/rubjs/methods/messages/sendGif.d.ts +3 -0
- package/rubjs/methods/messages/sendGif.js +17 -0
- package/rubjs/methods/messages/sendMessage.d.ts +3 -0
- package/rubjs/methods/messages/{send_message.js → sendMessage.js} +32 -20
- package/rubjs/methods/messages/sendMusic.d.ts +3 -0
- package/rubjs/methods/messages/sendMusic.js +17 -0
- package/rubjs/methods/messages/sendPhoto.d.ts +3 -0
- package/rubjs/methods/messages/sendPhoto.js +17 -0
- package/rubjs/methods/messages/sendSticker.d.ts +3 -0
- package/rubjs/methods/messages/sendSticker.js +17 -0
- package/rubjs/methods/messages/sendText.d.ts +3 -0
- package/rubjs/methods/messages/sendText.js +17 -0
- package/rubjs/methods/messages/sendVideo.d.ts +3 -0
- package/rubjs/methods/messages/sendVideo.js +17 -0
- package/rubjs/methods/messages/sendVideoMessage.d.ts +3 -0
- package/rubjs/methods/messages/sendVideoMessage.js +17 -0
- package/rubjs/methods/messages/sendVoice.d.ts +3 -0
- package/rubjs/methods/messages/sendVoice.js +17 -0
- package/rubjs/methods/messages/setPinMessage.d.ts +3 -0
- package/rubjs/methods/messages/{set_pin_message.js → setPinMessage.js} +2 -2
- package/rubjs/methods/messages/votePoll.d.ts +3 -0
- package/rubjs/methods/messages/{vote_poll.js → votePoll.js} +2 -2
- package/rubjs/methods/settings/changePassword.d.ts +3 -0
- package/rubjs/methods/settings/changePassword.js +17 -0
- package/rubjs/methods/settings/checkTwoStepPasscode.d.ts +3 -0
- package/rubjs/methods/settings/checkTwoStepPasscode.js +17 -0
- package/rubjs/methods/settings/deleteFolder.d.ts +3 -0
- package/rubjs/methods/settings/deleteFolder.js +17 -0
- package/rubjs/methods/settings/getBlockedUsers.d.ts +3 -0
- package/rubjs/methods/settings/getBlockedUsers.js +17 -0
- package/rubjs/methods/settings/getFolders.d.ts +3 -0
- package/rubjs/methods/settings/getFolders.js +17 -0
- package/rubjs/methods/settings/getMySessions.d.ts +3 -0
- package/rubjs/methods/settings/getMySessions.js +17 -0
- package/rubjs/methods/settings/getPrivacySetting.d.ts +3 -0
- package/rubjs/methods/settings/getPrivacySetting.js +17 -0
- package/rubjs/methods/settings/getSuggestedFolders.d.ts +3 -0
- package/rubjs/methods/settings/getSuggestedFolders.js +17 -0
- package/rubjs/methods/settings/getTwoPasscodeStatus.d.ts +3 -0
- package/rubjs/methods/settings/getTwoPasscodeStatus.js +17 -0
- package/rubjs/methods/settings/index.d.ts +19 -0
- package/rubjs/methods/settings/index.js +42 -0
- package/rubjs/methods/settings/requestRecoveryEmail.d.ts +3 -0
- package/rubjs/methods/settings/requestRecoveryEmail.js +20 -0
- package/rubjs/methods/settings/setSetting.d.ts +5 -0
- package/rubjs/methods/settings/setSetting.js +50 -0
- package/rubjs/methods/settings/setupTwoStepVerification.d.ts +3 -0
- package/rubjs/methods/settings/setupTwoStepVerification.js +21 -0
- package/rubjs/methods/settings/terminateOtherSessions.d.ts +3 -0
- package/rubjs/methods/settings/terminateOtherSessions.js +18 -0
- package/rubjs/methods/settings/terminateSession.d.ts +3 -0
- package/rubjs/methods/settings/terminateSession.js +17 -0
- package/rubjs/methods/settings/turnOffTwoStep.d.ts +3 -0
- package/rubjs/methods/settings/turnOffTwoStep.js +18 -0
- package/rubjs/methods/settings/updateProfile.d.ts +3 -0
- package/rubjs/methods/settings/updateProfile.js +30 -0
- package/rubjs/methods/settings/updateUsername.d.ts +3 -0
- package/rubjs/methods/settings/updateUsername.js +17 -0
- package/rubjs/methods/settings/verifyRecoveryEmail.d.ts +3 -0
- package/rubjs/methods/settings/verifyRecoveryEmail.js +17 -0
- package/rubjs/methods/stickers/actionOnStickerSet.d.ts +3 -0
- package/rubjs/methods/stickers/actionOnStickerSet.js +19 -0
- package/rubjs/methods/stickers/getMyStickerSets.d.ts +3 -0
- package/rubjs/methods/stickers/getMyStickerSets.js +17 -0
- package/rubjs/methods/stickers/getStickerSetByID.d.ts +3 -0
- package/rubjs/methods/stickers/getStickerSetByID.js +17 -0
- package/rubjs/methods/stickers/getStickersByEmoji.d.ts +3 -0
- package/rubjs/methods/stickers/getStickersByEmoji.js +17 -0
- package/rubjs/methods/stickers/getStickersBySetIds.d.ts +3 -0
- package/rubjs/methods/stickers/getStickersBySetIds.js +19 -0
- package/rubjs/methods/stickers/getTrendStickerSets.d.ts +3 -0
- package/rubjs/methods/stickers/getTrendStickerSets.js +17 -0
- package/rubjs/methods/stickers/index.d.ts +8 -0
- package/rubjs/methods/stickers/index.js +20 -0
- package/rubjs/methods/stickers/searchStickers.d.ts +3 -0
- package/rubjs/methods/stickers/searchStickers.js +17 -0
- package/rubjs/methods/users/checkUserUsername.d.ts +3 -0
- package/rubjs/methods/users/checkUserUsername.js +17 -0
- package/rubjs/methods/users/deleteUserChat.d.ts +3 -0
- package/rubjs/methods/users/deleteUserChat.js +20 -0
- package/rubjs/methods/users/getMe.d.ts +3 -0
- package/rubjs/methods/users/getMe.js +17 -0
- package/rubjs/methods/users/getUserInfo.d.ts +4 -0
- package/rubjs/methods/users/{get_user_info.js → getUserInfo.js} +2 -2
- package/rubjs/methods/users/index.d.ts +6 -2
- package/rubjs/methods/users/index.js +11 -3
- package/rubjs/methods/users/setBlockUser.d.ts +3 -0
- package/rubjs/methods/users/setBlockUser.js +19 -0
- package/rubjs/methods/utilities/download.d.ts +4 -0
- package/rubjs/methods/utilities/download.js +17 -0
- package/rubjs/methods/utilities/downloadProfilePicture.d.ts +3 -0
- package/rubjs/methods/utilities/downloadProfilePicture.js +27 -0
- package/rubjs/methods/utilities/get.d.ts +4 -0
- package/rubjs/methods/utilities/get.js +21 -0
- package/rubjs/methods/utilities/index.d.ts +7 -3
- package/rubjs/methods/utilities/index.js +13 -5
- package/rubjs/methods/utilities/post.d.ts +4 -0
- package/rubjs/methods/utilities/post.js +21 -0
- package/rubjs/methods/utilities/run.js +8 -1
- package/rubjs/methods/utilities/start.js +8 -7
- package/rubjs/methods/utilities/thumbnail.d.ts +1 -0
- package/rubjs/methods/utilities/thumbnail.js +15 -1
- package/rubjs/network/index.d.ts +4 -3
- package/rubjs/network/index.js +77 -21
- package/rubjs/parser/index.d.ts +25 -0
- package/rubjs/parser/index.js +112 -0
- package/rubjs/session/index.js +1 -1
- package/rubjs/{methods/auth/types/sign_in.d.ts → types/auth.d.ts} +11 -1
- package/rubjs/types/chats.d.ts +79 -0
- package/rubjs/{methods/types/message_update.d.ts → types/decorators.d.ts} +56 -0
- package/rubjs/types/groups.d.ts +129 -0
- package/rubjs/types/index.d.ts +8 -0
- package/rubjs/types/index.js +53 -0
- package/rubjs/types/message.d.ts +25 -0
- package/rubjs/types/message.js +61 -0
- package/rubjs/types/messages.d.ts +176 -0
- package/rubjs/{methods/users/types/get_user_info.d.ts → types/users.d.ts} +1 -0
- package/rubjs/utils/filters.d.ts +28 -16
- package/rubjs/utils/filters.js +90 -31
- package/rubjs/utils/index.d.ts +2 -1
- package/rubjs/utils/index.js +3 -1
- package/rubjs/utils/utils.d.ts +10 -0
- package/rubjs/utils/utils.js +12 -0
- package/rubjs/methods/auth/register_device.d.ts +0 -3
- package/rubjs/methods/auth/send_code.d.ts +0 -4
- package/rubjs/methods/auth/sign_in.d.ts +0 -4
- package/rubjs/methods/auth/types/index.d.ts +0 -3
- package/rubjs/methods/auth/types/send_code.d.ts +0 -10
- package/rubjs/methods/messages/action_on_message_reaction.d.ts +0 -4
- package/rubjs/methods/messages/create_poll.d.ts +0 -4
- package/rubjs/methods/messages/delete_messages.d.ts +0 -4
- package/rubjs/methods/messages/edit_message.d.ts +0 -4
- package/rubjs/methods/messages/forward_messages.d.ts +0 -4
- package/rubjs/methods/messages/get_message_share_url.d.ts +0 -4
- package/rubjs/methods/messages/get_messages_by_id.d.ts +0 -4
- package/rubjs/methods/messages/get_messages_interval.d.ts +0 -4
- package/rubjs/methods/messages/get_messages_updates.d.ts +0 -4
- package/rubjs/methods/messages/get_poll_option_voters.d.ts +0 -4
- package/rubjs/methods/messages/get_poll_status.d.ts +0 -4
- package/rubjs/methods/messages/send_message.d.ts +0 -4
- package/rubjs/methods/messages/send_photo.d.ts +0 -4
- package/rubjs/methods/messages/send_text.d.ts +0 -4
- package/rubjs/methods/messages/set_pin_message.d.ts +0 -4
- package/rubjs/methods/messages/types/action_on_message_reaction.d.ts +0 -10
- package/rubjs/methods/messages/types/delete_message.d.ts +0 -34
- package/rubjs/methods/messages/types/edit_message.d.ts +0 -38
- package/rubjs/methods/messages/types/forward_messages.d.ts +0 -7
- package/rubjs/methods/messages/types/forward_messages.js +0 -2
- package/rubjs/methods/messages/types/get_messages_by_id.d.ts +0 -14
- package/rubjs/methods/messages/types/get_messages_by_id.js +0 -2
- package/rubjs/methods/messages/types/get_messages_interval.d.ts +0 -43
- package/rubjs/methods/messages/types/get_messages_interval.js +0 -2
- package/rubjs/methods/messages/types/get_messages_updates.d.ts +0 -29
- package/rubjs/methods/messages/types/get_messages_updates.js +0 -2
- package/rubjs/methods/messages/types/get_poll_option_voters.d.ts +0 -19
- package/rubjs/methods/messages/types/get_poll_option_voters.js +0 -2
- package/rubjs/methods/messages/types/get_poll_status.d.ts +0 -13
- package/rubjs/methods/messages/types/get_poll_status.js +0 -2
- package/rubjs/methods/messages/types/index.d.ts +0 -13
- package/rubjs/methods/messages/types/index.js +0 -2
- package/rubjs/methods/messages/types/message_result.d.ts +0 -7
- package/rubjs/methods/messages/types/message_result.js +0 -2
- package/rubjs/methods/messages/types/mini_typs.d.ts +0 -5
- package/rubjs/methods/messages/types/mini_typs.js +0 -2
- package/rubjs/methods/messages/types/set_pin_message.d.ts +0 -15
- package/rubjs/methods/messages/types/set_pin_message.js +0 -2
- package/rubjs/methods/messages/vote_poll.d.ts +0 -4
- package/rubjs/methods/types/chat_updates.d.ts +0 -26
- package/rubjs/methods/types/chat_updates.js +0 -2
- package/rubjs/methods/types/index.d.ts +0 -5
- package/rubjs/methods/types/index.js +0 -2
- package/rubjs/methods/types/message_update.js +0 -2
- package/rubjs/methods/types/show_activities.d.ts +0 -7
- package/rubjs/methods/types/show_activities.js +0 -2
- package/rubjs/methods/types/show_notifications.d.ts +0 -14
- package/rubjs/methods/types/show_notifications.js +0 -2
- package/rubjs/methods/users/get_user_info.d.ts +0 -4
- package/rubjs/methods/users/types/get_user_info.js +0 -2
- package/rubjs/methods/users/types/index.d.ts +0 -2
- package/rubjs/methods/users/types/index.js +0 -2
- package/rubjs/methods/utilities/request_send_file.d.ts +0 -4
- package/rubjs/methods/utilities/types/index.d.ts +0 -2
- package/rubjs/methods/utilities/types/index.js +0 -2
- package/rubjs/methods/utilities/types/request_send_file.d.ts +0 -7
- package/rubjs/methods/utilities/types/request_send_file.js +0 -2
- /package/rubjs/{methods/auth/types/index.js → types/auth.js} +0 -0
- /package/rubjs/{methods/auth/types/send_code.js → types/chats.js} +0 -0
- /package/rubjs/{methods/auth/types/sign_in.js → types/decorators.js} +0 -0
- /package/rubjs/{methods/messages/types/action_on_message_reaction.js → types/groups.js} +0 -0
- /package/rubjs/{methods/messages/types/delete_message.js → types/messages.js} +0 -0
- /package/rubjs/{methods/messages/types/edit_message.js → types/users.js} +0 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
class Utils {
|
4
|
+
}
|
5
|
+
Utils.Code = (text) => "`" + text.trim() + "`";
|
6
|
+
Utils.Bold = (text) => `**${text.trim()}**`;
|
7
|
+
Utils.Italic = (text) => `__${text.trim()}__`;
|
8
|
+
Utils.Spoiler = (text) => `||${text.trim()}||`;
|
9
|
+
Utils.Strike = (text) => `~~${text.trim()}~~`;
|
10
|
+
Utils.Underline = (text) => `--${text.trim()}--`;
|
11
|
+
Utils.HyperLink = (text, link) => `[${text.trim()}](${link.trim()})`;
|
12
|
+
exports.default = Utils;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import Client from "../..";
|
2
|
-
import { ActionOnMessageReaction } from "./types";
|
3
|
-
declare function action_on_message_reaction(this: Client, object_guid: string, message_id: string, reaction_id?: number | null, action?: "Add" | "Remove"): Promise<ActionOnMessageReaction>;
|
4
|
-
export default action_on_message_reaction;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import Client from "../..";
|
2
|
-
import { SendMessageResult } from "./types";
|
3
|
-
declare function create_poll(this: Client, object_guid: string, question: string, options: string[], type?: "Regular" | "Quiz", is_anonymous?: boolean, allows_multiple_answers?: boolean, correct_option_index?: number, explanation?: string, reply_to_message_id?: string): Promise<SendMessageResult>;
|
4
|
-
export default create_poll;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import Client from "../../client";
|
2
|
-
import { SendMessageResult } from "./types";
|
3
|
-
declare function send_message(this: Client, object_guid: string, text?: string | null, reply_to_message_id?: string | null, file_inline?: Buffer | string | null, type?: string, is_spoil?: boolean, thumb?: boolean | string, audio_info?: boolean, auto_delete?: number): Promise<SendMessageResult>;
|
4
|
-
export default send_message;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import Client from "../..";
|
2
|
-
import { SendMessageResult } from "./types";
|
3
|
-
declare function send_photo(this: Client, object_guid: string, text: string, file_inline: Buffer<ArrayBufferLike> | string, reply_id?: string, is_spoil?: boolean, auto_delete?: number): Promise<SendMessageResult>;
|
4
|
-
export default send_photo;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
interface DeleteMessage {
|
2
|
-
chat_update: {
|
3
|
-
object_guid: string;
|
4
|
-
action: string;
|
5
|
-
chat: {
|
6
|
-
time_string: string;
|
7
|
-
last_message: {
|
8
|
-
message_id: string;
|
9
|
-
type: string;
|
10
|
-
text: string;
|
11
|
-
author_object_guid: string;
|
12
|
-
is_mine: boolean;
|
13
|
-
author_type: string;
|
14
|
-
};
|
15
|
-
time: number;
|
16
|
-
last_message_id: string;
|
17
|
-
};
|
18
|
-
time: number;
|
19
|
-
last_message_id: string;
|
20
|
-
updated_parameters: string[];
|
21
|
-
timestamp: string;
|
22
|
-
type: string;
|
23
|
-
};
|
24
|
-
message_updates: {
|
25
|
-
message_id: string;
|
26
|
-
action: string;
|
27
|
-
updated_parameters: [];
|
28
|
-
timestamp: string;
|
29
|
-
object_guid: string;
|
30
|
-
type: string;
|
31
|
-
state: string;
|
32
|
-
}[];
|
33
|
-
}
|
34
|
-
export default DeleteMessage;
|
@@ -1,38 +0,0 @@
|
|
1
|
-
interface EditMessage {
|
2
|
-
message_update: {
|
3
|
-
message_id: string;
|
4
|
-
action: string;
|
5
|
-
message: {
|
6
|
-
text: string;
|
7
|
-
is_edited: boolean;
|
8
|
-
};
|
9
|
-
updated_parameters: string[];
|
10
|
-
timestamp: string;
|
11
|
-
object_guid: string;
|
12
|
-
type: string;
|
13
|
-
state: string;
|
14
|
-
};
|
15
|
-
chat_update: {
|
16
|
-
object_guid: string;
|
17
|
-
action: string;
|
18
|
-
chat: {
|
19
|
-
last_message: {
|
20
|
-
last_message: {
|
21
|
-
message_id: string;
|
22
|
-
type: string;
|
23
|
-
text: string;
|
24
|
-
author_object_guid: string;
|
25
|
-
is_mine: boolean;
|
26
|
-
author_title: string;
|
27
|
-
author_type: string;
|
28
|
-
};
|
29
|
-
last_message_id: string;
|
30
|
-
};
|
31
|
-
last_message_id: string;
|
32
|
-
};
|
33
|
-
updated_parameters: string[];
|
34
|
-
timestamp: string;
|
35
|
-
type: string;
|
36
|
-
};
|
37
|
-
}
|
38
|
-
export default EditMessage;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
interface GetMessagesByID {
|
2
|
-
messages: {
|
3
|
-
message_id: string;
|
4
|
-
text: string;
|
5
|
-
time: string;
|
6
|
-
is_edited: boolean;
|
7
|
-
type: string;
|
8
|
-
author_type: string;
|
9
|
-
author_object_guid: string;
|
10
|
-
allow_transcription: boolean;
|
11
|
-
}[];
|
12
|
-
timestamp: string;
|
13
|
-
}
|
14
|
-
export default GetMessagesByID;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
interface GetMessagesInterval {
|
2
|
-
messages: [
|
3
|
-
{
|
4
|
-
message_id: string;
|
5
|
-
text: string;
|
6
|
-
file_inline: {
|
7
|
-
file_id: number;
|
8
|
-
mime: string;
|
9
|
-
dc_id: number;
|
10
|
-
access_hash_rec: string;
|
11
|
-
file_name: string;
|
12
|
-
thumb_inline: string;
|
13
|
-
width: number;
|
14
|
-
height: number;
|
15
|
-
time: number;
|
16
|
-
size: number;
|
17
|
-
type: string;
|
18
|
-
is_round: false;
|
19
|
-
is_spoil: false;
|
20
|
-
};
|
21
|
-
time: string;
|
22
|
-
is_edited: false;
|
23
|
-
type: string;
|
24
|
-
author_type: string;
|
25
|
-
author_object_guid: string;
|
26
|
-
reactions: {
|
27
|
-
user_guids: string[];
|
28
|
-
reaction_count: number;
|
29
|
-
emoji_char: string;
|
30
|
-
reaction_id: number;
|
31
|
-
is_selected: false;
|
32
|
-
}[];
|
33
|
-
allow_transcription: false;
|
34
|
-
}
|
35
|
-
];
|
36
|
-
state: string;
|
37
|
-
new_has_continue: true;
|
38
|
-
old_has_continue: true;
|
39
|
-
new_min_id: number;
|
40
|
-
old_max_id: number;
|
41
|
-
timestamp: string;
|
42
|
-
}
|
43
|
-
export default GetMessagesInterval;
|
@@ -1,29 +0,0 @@
|
|
1
|
-
interface GetMessagesUpdates {
|
2
|
-
updated_messages: [
|
3
|
-
{
|
4
|
-
message_id: string;
|
5
|
-
action: string;
|
6
|
-
message: {
|
7
|
-
text: string;
|
8
|
-
is_edited: boolean;
|
9
|
-
};
|
10
|
-
updated_parameters: string[];
|
11
|
-
timestamp: string;
|
12
|
-
object_guid: string;
|
13
|
-
type: string;
|
14
|
-
state: string;
|
15
|
-
},
|
16
|
-
{
|
17
|
-
message_id: string;
|
18
|
-
action: string;
|
19
|
-
updated_parameters: [];
|
20
|
-
timestamp: string;
|
21
|
-
object_guid: string;
|
22
|
-
type: string;
|
23
|
-
state: string;
|
24
|
-
}
|
25
|
-
];
|
26
|
-
new_state: number;
|
27
|
-
status: string;
|
28
|
-
}
|
29
|
-
export default GetMessagesUpdates;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
interface GetPollOptionVoters {
|
2
|
-
voters_abs_objects: {
|
3
|
-
object_guid: string;
|
4
|
-
type: string;
|
5
|
-
first_name: string;
|
6
|
-
last_name: string;
|
7
|
-
avatar_thumbnail: {
|
8
|
-
file_id: string;
|
9
|
-
mime: string;
|
10
|
-
dc_id: string;
|
11
|
-
access_hash_rec: string;
|
12
|
-
};
|
13
|
-
is_verified: boolean;
|
14
|
-
is_deleted: boolean;
|
15
|
-
}[];
|
16
|
-
has_continue: boolean;
|
17
|
-
next_start_id: string;
|
18
|
-
}
|
19
|
-
export default GetPollOptionVoters;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
interface GetPollStatus {
|
2
|
-
poll_status: {
|
3
|
-
state: string;
|
4
|
-
selection_index: number;
|
5
|
-
percent_vote_options: number[];
|
6
|
-
total_vote: number;
|
7
|
-
show_total_votes: boolean;
|
8
|
-
voters_object_guids: string[];
|
9
|
-
correct_option_index: number;
|
10
|
-
explanation: string;
|
11
|
-
};
|
12
|
-
}
|
13
|
-
export default GetPollStatus;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import DeleteMessage from "./delete_message";
|
2
|
-
import EditMessage from "./edit_message";
|
3
|
-
import ForwardMessages from "./forward_messages";
|
4
|
-
import SendMessageResult from "./message_result";
|
5
|
-
import ActionOnMessageReaction from "./action_on_message_reaction";
|
6
|
-
import { GetMessageShareUrl } from "./mini_typs";
|
7
|
-
import GetMessagesByID from "./get_messages_by_id";
|
8
|
-
import GetMessagesInterval from "./get_messages_interval";
|
9
|
-
import GetMessagesUpdates from "./get_messages_updates";
|
10
|
-
import GetPollOptionVoters from "./get_poll_option_voters";
|
11
|
-
import GetPollStatus from "./get_poll_status";
|
12
|
-
import SetPinMessage from "./set_pin_message";
|
13
|
-
export { ActionOnMessageReaction, DeleteMessage, EditMessage, ForwardMessages, SendMessageResult, GetMessageShareUrl, GetMessagesByID, GetMessagesInterval, GetMessagesUpdates, GetPollOptionVoters, GetPollStatus, SetPinMessage, };
|
@@ -1,15 +0,0 @@
|
|
1
|
-
interface SetPinMessage {
|
2
|
-
chat_update: {
|
3
|
-
object_guid: string;
|
4
|
-
action: string;
|
5
|
-
chat: {
|
6
|
-
pinned_message_id: string;
|
7
|
-
pinned_message_ids: string[];
|
8
|
-
};
|
9
|
-
updated_parameters: string[];
|
10
|
-
timestamp: string;
|
11
|
-
type: string;
|
12
|
-
};
|
13
|
-
status: string;
|
14
|
-
}
|
15
|
-
export default SetPinMessage;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
interface ChatUpdates {
|
2
|
-
object_guid: string;
|
3
|
-
action: string;
|
4
|
-
chat: {
|
5
|
-
time_string: string;
|
6
|
-
last_message: {
|
7
|
-
message_id: string;
|
8
|
-
type: string;
|
9
|
-
text: string;
|
10
|
-
author_object_guid?: string;
|
11
|
-
is_mine: boolean;
|
12
|
-
author_title?: string;
|
13
|
-
author_type?: string;
|
14
|
-
};
|
15
|
-
last_seen_peer_mid?: string;
|
16
|
-
last_seen_my_mid?: string;
|
17
|
-
status?: string;
|
18
|
-
time: number;
|
19
|
-
last_message_id: string;
|
20
|
-
group_voice_chat_id?: string;
|
21
|
-
};
|
22
|
-
updated_parameters: string[];
|
23
|
-
timestamp: string;
|
24
|
-
type: string;
|
25
|
-
}
|
26
|
-
export default ChatUpdates;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
interface ShowNotifications {
|
2
|
-
notification_id: string;
|
3
|
-
type: string;
|
4
|
-
title: string;
|
5
|
-
text: string;
|
6
|
-
image_file_id?: number;
|
7
|
-
message_data: {
|
8
|
-
object_guid: string;
|
9
|
-
object_type: string;
|
10
|
-
message_id: number;
|
11
|
-
sender_guid?: string;
|
12
|
-
};
|
13
|
-
}
|
14
|
-
export default ShowNotifications;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|