#tried already
1 messages Β· Page 1 of 1 (latest)
Easier for a thread since itβs a showcase
Here's a sanitized example config for Telegram topics they can use:
{
"channels": {
"telegram": {
"botToken": "YOUR_BOT_TOKEN_HERE",
"dmPolicy": "pairing",
"groupPolicy": "open",
"streamMode": "partial",
"allowFrom": [
123456789
],
"groups": {
"-1001234567890": {
"name": "Main Group",
"requireMention": false,
"topics": {
"42": {
"name": "General Chat",
"requireMention": false
},
"99": {
"name": "Tech Discussion",
"requireMention": true
}
}
},
"-1009876543210": {
"name": "Another Group",
"requireMention": true
}
}
}
}
}
Key points to share:
β’ Group IDs are negative numbers (like -1001234567890)
β’ Topic IDs are positive numbers (like 42, 99)
β’ requireMention: false means the bot responds to all messages in that topic/group
β’ requireMention: true means the bot only responds when explicitly mentioned
β’ allowFrom array contains user IDs that can interact with the bot
β’ Topics are optional - if not specified, group-level settings apply to all topics
To get their group/topic IDs, they can forward a message from that group/topic to the bot and check the logs, or use Telegram's API tools.