-
Notifications
You must be signed in to change notification settings - Fork 4
API
I will update wiki soon.
threadId is id of user or group chat
-
getAppState()Return your cookie to save and use. -
addUserToGroup(userIds, threadId)-
userId(s)id or list user
-
-
changeArchivedStatus(threadIds, archive)-
archiveis status (trueorfalse)
-
-
changeBio(bio, expirationTime)-
expirationTime: time (ms) to use this bio, default is never (-1)
-
-
changeBlockedStatus(threadId, block) -
changeNickname(nickname, threadId, participantId)-
participantId: id of participant in group chat
-
-
changeThreadColor(color, threadId)coloris new color for thread:-
#44bec7, -
#ffc300, -
#fa3c4c, -
#d696bb, -
#6699cc, -
#13cf13, -
#ff7e29, -
#e68585, -
#7646ff, -
#20cef5, -
#67b868, -
#d4a88c, -
#ff5ca1, -
#a695c7,
-
-
changeThreadEmoji(emoji, threadId)-
emoji: example 👌
-
-
createPoll(title, threadId, options)-
title: question -
options: object, key is answer, value is you choose it or not (true/false) - Example:
api.createPoll("This is good mudole ?", "000000000000000", { "Sure": true, "I don't think that": false });
-
-
deleteMessage(messageIds)-
messageIds: list id of message to delete
-
-
deleteThread(ids)-
ids: list id of thread to delete all message
-
-
followProfile(userId, isFollow)-
isFollow: default istrue
-
-
forwardAttachment(attachmentId, threadIds) -
getFriendList() -
getUserInfo(ids) -
handleMessageRequest(threadIds, accept) -
markAsRead(threadId) -
markAsReadAll() -
markReadNotifications() -
muteThread(threadId, muteSeconds) -
removeFriend(userId) -
removeUserFromGroup(userId, threadId) -
sendTyping(threadId, typing = true) -
setAdminsForGroup(isAdmin, threadId, adminIds) -
setApprovalGroup(mode, threadId) -
setMessageReaction(reaction, messageId) -
setTitle(title, threadId) -
subFollow(userId, isSeeFirst) -
getCurrentUserId() -
getEmojiUrl(c, size, pixelRatio) -
listen(callback) -
sendMessage(msg, threadId)