#help

1 messages ยท Page 1 of 1 (latest)

royal oasisBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

mental star
#

@slate anchor

#

Error: Config validation failed: channels.telegram.allowFrom: channels.telegram.dmPolicy="open" requires channels.telegram.allowFrom to include "*"

slate anchorBOT
#

The error is clear! When you set dmPolicy: "open", you must also include "*" in your allowFrom array. This is a safety feature to make sure you explicitly acknowledge you're opening DMs to everyone.

Fix: Add "*" to your allowFrom:

channels: {
  telegram: {
    botToken: "YOUR_BOT_TOKEN",
    dmPolicy: "open",
    allowFrom: ["*"]  // Required when dmPolicy is "open"
  }
}

Or if you only want specific users, use dmPolicy: "allowlist" instead:

slate anchorBOT
mental star
#

:\Users\malik> channels: {

telegram: {
botToken: "YOUR_BOT_TOKEN",
dmPolicy: "open",
allowFrom: ["*"] // Required when dmPolicy is "open"
}
}

How do i continue

slate anchorBOT
#
channels: {
  telegram: {
    botToken: "YOUR_BOT_TOKEN",
    dmPolicy: "allowlist",
    allowFrom: ["123456789"]  // Your Telegram user ID
  }
}

๐Ÿ’ก Tip: dmPolicy: "pairing" is the safest default โ€” unknown users get a pairing code they can give you for approval. No need to know IDs upfront!

Docs: https://docs.clawd.bot/channels/grammy

Happy to help! ๐Ÿฆ

mental star
#

Done, what's next?