#Telegram Bots not getting messages

1 messages Β· Page 1 of 1 (latest)

surreal yacht
#

I have four Telegram bot accounts, each intended to route to a separate forum topic in the same Telegram supergroup. Each topic should allow only my Telegram user ID and should not require mentioning the bot. The bots start, direct outbound sendMessage to the topic works, BotFather privacy is disabled, and the bot has been removed/re-added to the group. But inbound messages in the topic do not seem to trigger replies. Does this config shape look correct, especially the per-topic groupPolicy, allowFrom, and account-level groupAllowFrom setup?

{
  "channels": {
    "telegram": {
      "enabled": true,
      "accounts": {
        "agent_a": {
          "botToken": "${AGENT_A_TELEGRAM_BOT_TOKEN}",
          "defaultTo": "-100XXXXXXXXXX:topic:101",
          "groupPolicy": "allowlist",
          "allowFrom": ["123456789"],
          "groupAllowFrom": ["123456789"],
          "groups": {
            "-100XXXXXXXXXX": {
              "enabled": true,
              "groupPolicy": "disabled",
              "topics": {
                "101": {
                  "enabled": true,
                  "groupPolicy": "allowlist",
                  "requireMention": false,
                  "allowFrom": ["123456789"],
                  "agentId": "main"
                }
              }
            }
          }
        },
        "agent_b": {
          "botToken": "${AGENT_B_TELEGRAM_BOT_TOKEN}",
          "defaultTo": "-100XXXXXXXXXX:topic:102",
          "groupPolicy": "allowlist",
          "allowFrom": ["123456789"],
          "groupAllowFrom": ["123456789"],
          "groups": {
            "-100XXXXXXXXXX": {
              "enabled": true,
              "groupPolicy": "disabled",
              "topics": {
                "102": {
                  "enabled": true,
                  "groupPolicy": "allowlist",
                  "requireMention": false,
                  "allowFrom": ["123456789"],
                  "agentId": "agent_b"
                }
              }
            }
          }
        },
        "agent_c": {
          "botToken": "${AGENT_C_TELEGRAM_BOT_TOKEN}",
          "defaultTo": "-100XXXXXXXXXX:topic:103",
          "groupPolicy": "allowlist",
          "allowFrom": ["123456789"],
          "groupAllowFrom": ["123456789"],
          "groups": {
            "-100XXXXXXXXXX": {
              "enabled": true,
              "groupPolicy": "disabled",
              "topics": {
                "103": {
                  "enabled": true,
                  "groupPolicy": "allowlist",
                  "requireMention": false,
                  "allowFrom": ["123456789"],
                  "agentId": "agent_c"
                }
              }
            }
          }
        },
        "agent_d": {
          "botToken": "${AGENT_D_TELEGRAM_BOT_TOKEN}",
          "defaultTo": "-100XXXXXXXXXX:topic:104",
          "groupPolicy": "allowlist",
          "allowFrom": ["123456789"],
          "groupAllowFrom": ["123456789"],
          "groups": {
            "-100XXXXXXXXXX": {
              "enabled": true,
              "groupPolicy": "disabled",
              "topics": {
                "104": {
                  "enabled": true,
                  "groupPolicy": "allowlist",
                  "requireMention": false,
                  "allowFrom": ["123456789"],
                  "agentId": "agent_d"
                }
              }
            }
          }
        },
        "default": {
          "groupPolicy": "allowlist"
        }
      }
    }
  }
}