@@ -30,20 +30,20 @@ Copy the following variables to your `.env` file and fill in your credentials:
30
30
TELEGRAM_API_ID= # API ID from my.telegram.org/apps
31
31
TELEGRAM_API_HASH= # API Hash from my.telegram.org/apps
32
32
TELEGRAM_PHONE_NUMBER= # Your phone number in international format
33
- TELEGRAM_ALLOWED_GROUPS= # (Optional) Comma-separated list of group names (e.g., CryptoTalk,AIDiscussion)
33
+ TELEGRAM_ALLOWED_GROUPS= # (Optional) Comma-separated list of group usernames (e.g., CryptoTalk,AIDiscussion)
34
34
TELEGRAM_SESSION= # Will be auto-generated after first login
35
35
```
36
36
37
37
### 3. Configure Allowed Groups (Optional)
38
38
39
39
To restrict the bot to specific groups:
40
40
1 . Add your bot to the desired Telegram groups
41
- 2 . Set the ` TELEGRAM_ALLOWED_GROUPS ` variable with the group names :
41
+ 2 . Set the ` TELEGRAM_ALLOWED_GROUPS ` variable with the group usernames :
42
42
``` bash
43
43
TELEGRAM_ALLOWED_GROUPS=CryptoTalk,AIDiscussion,BlockchainHub
44
44
```
45
45
3 . The bot will only respond in these specified groups
46
- 4 . Group names are case-sensitive and should match exactly as shown in Telegram
46
+ 4 . Group usernames are case-sensitive and should match exactly as shown in the invite link (e.g., if the invite link is t.me/MyGroup, use "MyGroup")
47
47
5 . Leave empty to allow the bot to respond in all groups
48
48
49
49
### 4. Start Eliza with CryptoAI Sage
@@ -73,7 +73,7 @@ pnpm start --characters=characters/cryptoai_sage.character.json
73
73
## Usage Tips
74
74
75
75
- The bot will only respond in groups listed in ` TELEGRAM_ALLOWED_GROUPS `
76
- - Group names must match exactly as they appear in Telegram (case-sensitive )
76
+ - Group usernames must match exactly as they appear in the invite link (e.g., if the invite link is t.me/MyGroup, use "MyGroup" )
77
77
- You can add or remove groups by updating the ` TELEGRAM_ALLOWED_GROUPS ` list
78
78
- If no groups are specified, the bot will not respond to any messages
79
79
- You can interact with the bot in both private chats and groups just make sure to mention them in .env
0 commit comments