Methods
acceptGroupApplication
Parameters
groupID: string
fromUser: string
toUser: string
Optional reason: string
Optional addTime: number
type: GroupApplicationTypeEnum = GroupApplicationTypeEnum.V2TIM_GROUP_APPLICATION_GET_TYPE_INVITE
createGroup
- createGroup(groupType: string, groupName: string, groupID?: string, notification?: string, introduction?: string, faceUrl?: string, isAllMuted?: Boolean, isSupportTopic?: boolean, addOpt?: GroupAddOptEnum, memberList?: V2TimGroupMember[]): Promise<V2TimValueCallback<string>>
Parameters
groupType: string
groupName: string
Optional groupID: string
Optional notification: string
Optional introduction: string
Optional faceUrl: string
Optional isAllMuted: Boolean
isSupportTopic: boolean = false
addOpt: GroupAddOptEnum = GroupAddOptEnum.V2TIM_GROUP_ADD_AUTH
deleteGroupAttributes
- deleteGroupAttributes(groupID: string, keys: string[]): Promise<V2TimCallback>
Parameters
groupID: string
keys: string[]
deleteTopicFromCommunity
- deleteTopicFromCommunity(groupID: string, topicIDList: string[]): any
Parameters
groupID: string
topicIDList: string[]
Returns any
getGroupAttributes
Parameters
groupID: string
Optional keys: string[]
getGroupMemberList
Parameters
groupID: string
nextSeq: string
count: number = 15
offset: number = 0
getGroupMembersInfo
Parameters
groupID: string
Optional memberList: string[]
getGroupOnlineMemberCount
getTopicInfoList
Parameters
groupID: string
topicIDList: string[]
inviteUserToGroup
Parameters
groupID: string
userList: string[]
kickGroupMember
- kickGroupMember(groupID: string, memberList: string[]): Promise<V2TimCallback>
Parameters
groupID: string
memberList: string[]
muteGroupMember
- muteGroupMember(groupID: string, userID: string, seconds: number): Promise<V2TimCallback>
Parameters
groupID: string
userID: string
seconds: number
refuseGroupApplication
Parameters
groupID: string
fromUser: string
toUser: string
addTime: number
Optional reason: string
searchGroupMembers
- searchGroupMembers(__namedParameters: { groupIDList?: string[]; isSearchMemberNameCard?: boolean; isSearchMemberNickName?: boolean; isSearchMemberRemark?: boolean; isSearchMemberUserID?: boolean; keywordList: string[] }): Promise<V2TimValueCallback<{ groupMemberSearchResultItems: StringMap }>>
Parameters
__namedParameters: { groupIDList?: string[]; isSearchMemberNameCard?: boolean; isSearchMemberNickName?: boolean; isSearchMemberRemark?: boolean; isSearchMemberUserID?: boolean; keywordList: string[] }
Optional groupIDList?: string[]
Optional isSearchMemberNameCard?: boolean
Optional isSearchMemberNickName?: boolean
Optional isSearchMemberRemark?: boolean
Optional isSearchMemberUserID?: boolean
keywordList: string[]
searchGroups
- searchGroups(__namedParameters: { isSearchGroupID?: boolean; isSearchGroupName?: boolean; keywordList: string[] }): Promise<V2TimValueCallback<V2TimGroupInfo[]>>
Parameters
__namedParameters: { isSearchGroupID?: boolean; isSearchGroupName?: boolean; keywordList: string[] }
Optional isSearchGroupID?: boolean
Optional isSearchGroupName?: boolean
keywordList: string[]
setGroupMemberInfo
- setGroupMemberInfo(groupID: string, userID: string, nameCard?: string, customInfo?: StringMap): Promise<V2TimCallback>
Parameters
groupID: string
userID: string
Optional nameCard: string
Optional customInfo: StringMap
setGroupMemberRole
Parameters
groupID: string
userID: string
transferGroupOwner
- transferGroupOwner(groupID: string, userID: string): Promise<V2TimCallback>
Parameters
groupID: string
userID: string
同意某一条加群申请