mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-09 22:08:38 +03:00
40 lines
1.6 KiB
JSON
40 lines
1.6 KiB
JSON
{
|
|
"description": "Telegram のチャットから nanobot と会話します。",
|
|
"requirements": "ボットトークン、許可するユーザー、ゲートウェイ",
|
|
"setup": {
|
|
"docsLabel": "Telegram 設定ガイドを開く",
|
|
"officialLabel": "BotFather を開く",
|
|
"tryIt": "Telegram ボットに /start または短い DM を送信します。",
|
|
"summary": "有効化すると Telegram 対応がオンになります。メッセージの送受信には BotFather トークンが必要です。",
|
|
"steps": [
|
|
"BotFather でボットを作成し、トークンをコピーします。",
|
|
"トークンを追加し、ボットに連絡できるユーザーを選びます。",
|
|
"保存して Telegram を有効にし、DM を送るかグループでメンションします。"
|
|
],
|
|
"fields": {
|
|
"token": {
|
|
"label": "ボットトークン",
|
|
"placeholder": "123456:ABC...",
|
|
"help": "BotFather で作成します。"
|
|
},
|
|
"proxy": {
|
|
"label": "ネットワークプロキシ",
|
|
"placeholder": "http://127.0.0.1:7890"
|
|
},
|
|
"allowFrom": {
|
|
"label": "許可するユーザー",
|
|
"placeholder": "* または Telegram ユーザー ID",
|
|
"help": "ペアリングコードを使う場合は空欄にします。"
|
|
},
|
|
"groupPolicy": {
|
|
"label": "グループでの動作",
|
|
"choices": {
|
|
"mention": "メンションのみ",
|
|
"open": "すべてのメッセージ",
|
|
"allowlist": "許可リスト"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|