tencent cloud


SDK APIs (Electron)

Last updated: 2022-05-13 17:57:48

    Event Callback APIs

    API Description
    TIMAddRecvNewMsgCallback Adds the callback for receiving new messages
    TIMRemoveRecvNewMsgCallback Deletes the callback for receiving new messages
    TIMSetMsgReadedReceiptCallback Sets the callback for message read receipts
    TIMSetMsgRevokeCallback Sets the callback for message recalls
    TIMSetMsgElemUploadProgressCallback Sets the callback for the upload progress of message element files
    TIMSetGroupTipsEventCallback Sets the callback for group system messages
    TIMSetConvEventCallback Sets the callback for conversation events
    TIMSetNetworkStatusListenerCallback Sets the callback for network connection status
    TIMSetKickedOfflineCallback Sets the callback for notifications of forced logout
    TIMSetUserSigExpiredCallback Sets the callback for user ticket expiration
    TIMSetOnAddFriendCallback Sets the callback for adding friends
    TIMSetOnDeleteFriendCallback Sets the callback for deleting friends
    TIMSetUpdateFriendProfileCallback Sets the callback for updating friends' profiles
    TIMSetFriendAddRequestCallback Sets the callback for friend requests
    TIMSetLogCallback Sets the callback for logs
    TIMSetMsgUpdateCallback Sets the callback for message update notifications returned after messages are modified in the cloud

    IM SDK Initialization APIs

    API Description
    TIMInit Initializes the IM SDK
    TIMUninit Uninstalls the IM SDK
    TIMGetSDKVersion Gets IM SDK version number
    TIMSetConfig Sets extra user configurations

    Login and Logout APIs

    API Description
    TIMLogin Logs in
    TIMLogout Logs out

    Conversation APIs

    API Description
    TIMConvCreate Creates a conversation
    TIMConvDelete Deletes a conversation
    TIMConvGetConvList Gets the conversation list of recent contacts
    TIMConvSetDraft Sets the draft of a conversation
    TIMConvCancelDraft Deletes the draft of a conversation

    Message APIs

    API Description
    TIMMsgSendNewMsg Sends a new message
    TIMMsgReportReaded Marks a message as read
    TIMMsgRevoke Recalls a message
    TIMMsgFindByMsgLocatorList Locates a message of a conversation by using the message locator
    TIMMsgImportMsgList Imports a message list to a conversation
    TIMMsgSaveMsg Saves a custom message
    TIMMsgGetMsgList Gets the messages of a conversation
    TIMMsgDelete Deletes the messages of a conversation
    TIMMsgDownloadElemToPath Downloads message elements (such as image, video, audio, and file) to a path
    TIMMsgBatchSend Sends a message to multiple users at a time, but not to groups

    Group APIs

    API Description
    TIMGroupCreate Creates a group
    TIMGroupDelete Deletes a group
    TIMGroupJoin Requests to join a group
    TIMGroupQuit Quits a group
    TIMGroupInviteMember Invites someone to join a group
    TIMGroupDeleteMember Removes a member from a group
    TIMGroupGetJoinedGroupList Gets the list of groups that a user has joined
    TIMGroupGetGroupInfoList Gets group information
    TIMGroupModifyGroupInfo Modifies group information
    TIMGroupGetMemberInfoList Gets group member information
    TIMGroupModifyMemberInfo Modifies group member information
    TIMGroupGetPendencyList Gets the pending group request list.
    Pending group requests are those that are not handled, for example, requests to join a group or to invite a user to join a group.
    TIMGroupReportPendencyReaded Reports that a pending group request is read
    TIMGroupHandlePendency Handles pending group requests

    User Profile APIs

    API Description
    TIMProfileGetUserProfileList Gets the profiles of specified users
    TIMProfileModifySelfUserProfile Modifies one's own profile

    Relationship Chain APIs

    API Description
    TIMFriendshipGetFriendProfileList Gets friend lists
    TIMFriendshipAddFriend Adds friends
    TIMFriendshipHandleFriendAddRequest Handles friend requests
    TIMFriendshipModifyFriendProfile Updates friends' profiles (such as remarks)
    TIMFriendshipDeleteFriend Deletes friends
    TIMFriendshipCheckFriendType Checks the friend type (one-way or two-way)
    TIMFriendshipCreateFriendGroup Creates a friend list
    TIMFriendshipGetFriendGroupList Gets the information of a friend list
    TIMFriendshipModifyFriendGroup Modifies a friend list
    TIMFriendshipDeleteFriendGroup Deletes a friend list
    TIMFriendshipAddToBlackList Adds a user to the blocklist
    TIMFriendshipGetBlackList Gets the blocklist
    TIMFriendshipDeleteFromBlackList Removes a user from the blocklist
    TIMFriendshipGetPendencyList Gets the pending friend request list
    TIMFriendshipDeletePendency Deletes a pending friend request
    TIMFriendshipReportPendencyReaded Reports that a pending friend request is read
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support