SUZENT 使用手册
Telegram Integration
Setup 1. Create a Bot : Talk to @BotFather on Telegram to create a new bot and get your Token . 2. Get Your User ID : Talk to @userinfobot to get your numeric User ID. Configuratio
此页面目前提供英文内容,中文翻译尚未完成。
Setup
- Create a Bot: Talk to @BotFather on Telegram to create a new bot and get your Token.
- Get Your User ID: Talk to @userinfobot to get your numeric User ID.
Configuration
Add the following to your config/social.json:
{
"telegram": {
"enabled": true,
"token": "YOUR_TELEGRAM_BOT_TOKEN",
"allowed_users": ["YOUR_USER_ID"]
}
}[!IMPORTANT] Group Privacy Mode By default, Telegram bots cannot see messages in groups unless they are mentions or commands. To allow the bot to see all messages:
- Talk to @BotFather.
- Send
/mybots> Select your bot > Bot Settings > Group Privacy.- Select Turn off.
- Re-add the bot to the group if necessary.
[!NOTE] Suzent now strictly uses
config/social.jsonfor credentials. Environment variables are no longer supported.