#How to allow telegram group chat
1 messages Β· Page 1 of 1 (latest)
To βallowβ a Telegram group, you need to configure two separate things:
- Which group chats are allowed (by chat id, usually a negative number like
-100...) - Who inside that group is allowed to talk to the bot (optional)
1) Get the group chat id
Any of these work:
- run
openclaw logs --followand look forchat.idwhen someone writes in the group - or use Telegram Bot API
getUpdatesand readmessage.chat.id - or forward a message to
@userinfobot/@getidsbot
2) Add the group under channels.telegram.groups
Example: allow anyone in a specific group, without needing @mentions:
{
channels: {
telegram: {
groups: {
"-1001234567890": {
groupPolicy: "open",
requireMention: false,
},
},
},
},
}
Example: allow the group, but only specific users inside it:
{
channels: {
telegram: {
groups: {
"-1001234567890": {
requireMention: true,
allowFrom: ["8734062810", "745123456"],
},
},
},
},
}
Important gotcha: donβt put the negative group chat id into allowFrom / groupAllowFrom β negative IDs go under channels.telegram.groups. allowFrom is for user IDs.