docs/channels/matrix/README.ja.md
README に戻る
config.json に以下を追加してください:
{
"channel_list": {
"matrix": {
"enabled": true,
"type": "matrix",
"homeserver": "https://matrix.org",
"user_id": "@your-bot:matrix.org",
"access_token": "YOUR_MATRIX_ACCESS_TOKEN",
"device_id": "",
"join_on_invite": true,
"allow_from": [],
"group_trigger": {
"mention_only": true
},
"placeholder": {
"enabled": true,
"text": "Thinking..."
},
"reasoning_channel_id": "",
"message_format": "richtext"
}
}
}
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| enabled | bool | はい | Matrix チャンネルの有効/無効 |
| homeserver | string | はい | Matrix ホームサーバー URL(例:https://matrix.org) |
| user_id | string | はい | ボットの Matrix ユーザー ID(例:@bot:matrix.org) |
| access_token | string | はい | ボットのアクセストークン |
| device_id | string | いいえ | オプションの Matrix デバイス ID |
| join_on_invite | bool | いいえ | 招待されたルームに自動参加 |
| allow_from | []string | いいえ | ユーザーホワイトリスト(Matrix ユーザー ID) |
| group_trigger | object | いいえ | グループトリガー戦略(mention_only / prefixes) |
| placeholder | object | いいえ | プレースホルダーメッセージ設定 |
| reasoning_channel_id | string | いいえ | 推論出力のターゲットチャンネル |
| message_format | string | いいえ | 出力形式:"richtext"(デフォルト)は markdown を HTML としてレンダリング;"plain" はプレーンテキストのみ送信 |
richtext / plain)[audio: ...])m.typing)