# Class MessageBlockInfo

消息拦截信息

#### Version

1.0.0

- Defined in message/model/MessageBlockInfo.ts:7

##### Index

### Constructors

constructor

### Properties

conversationType
targetId
channelId
messageUid
extra
blockType
sourceType
sourceContent

## Constructors

### constructor

- new MessageBlockInfo(): MessageBlockInfo

  #### Returns MessageBlockInfo

## Properties

### conversationType

conversationType: ConversationType = ConversationType.Private

会话类型

- Defined in message/model/MessageBlockInfo.ts:11

### targetId

targetId: string = ''

会话 ID

- Defined in message/model/MessageBlockInfo.ts:15

### channelId

channelId: string = ''

所属会话的业务标识，长度限制 20 字符

仅支持单群聊和超级群，其他类型的会话请传入空字符串

#### Version

1.2.0

- Defined in message/model/MessageBlockInfo.ts:22

### messageUid

messageUid: string = ''

被拦截的消息 UID

- Defined in message/model/MessageBlockInfo.ts:26

### extra

extra: string = ''

附加信息

- Defined in message/model/MessageBlockInfo.ts:30

### blockType

blockType: MessageBlockType = MessageBlockType.None

拦截类型

- Defined in message/model/MessageBlockInfo.ts:34

### sourceType

sourceType: MessageBlockSourceType = MessageBlockSourceType.Default

消息被拦截的触发来源

- Defined in message/model/MessageBlockInfo.ts:38

### sourceContent

sourceContent: string = ''

源内容 Json 字符串，sourceType 为 1、2 时返回

sourceType 为 0，sourceContent 内容为 null

sourceType 为 1，sourceContent 是扩展内容，示例 {"mid":"xxx-xxx-xxx-xxx","put":{"key":"敏感词"}}

sourceType 为 2，sourceContent 是消息修改后内容，示例 {"content":"敏感词"}

- Defined in message/model/MessageBlockInfo.ts:48