#help
1 messages ยท Page 1 of 1 (latest)
@slate anchor
Error: Config validation failed: channels.telegram.allowFrom: channels.telegram.dmPolicy="open" requires channels.telegram.allowFrom to include "*"
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:
@mental star I just answered this above! ๐
Add "*" to your allowFrom:
allowFrom: ["*"]
Or switch to dmPolicy: "pairing" if you don't want it open to everyone. ๐ฆ
:\Users\malik> channels: {
telegram: {
botToken: "YOUR_BOT_TOKEN",
dmPolicy: "open",
allowFrom: ["*"] // Required when dmPolicy is "open"
}
}
How do i continue
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! ๐ฆ
Done, what's next?