Install
openclaw skills install teamgram-bff-aggregationComplete reference for the BFF aggregation layer in Teamgram Server with all 27 RPC modules and 268 handlers implementing Telegram-compatible API endpoints.
openclaw skills install teamgram-bff-aggregationbff.bff 是 Telegram RPC 的主要实现层。它本质上是一个 go-zero zrpc gRPC server,注册了多个 mtproto.RegisterRPCxxxServer。
| module | handlers | 说明 |
|---|---|---|
| account | 8 | 账户TTL/换手机号/删除账户 |
| authorization | 29 | 登录/注册/二步验证/邮箱验证 |
| autodownload | 2 | 自动下载设置 |
| chatinvites | 14 | 聊天邀请链接/加群请求 |
| chats | 23 | 群组管理/创建/迁移/管理员 |
| configuration | 11 | 帮助/配置/国家列表/更新检查 |
| contacts | 23 | 联系人管理/搜索/屏蔽/导入 |
| dialogs | 15 | 对话列表/置顶/标记未读/输入状态 |
| drafts | 3 | 消息草稿 |
| files | 12 | 文件上传/下载/CDN |
| messages | 33 | 消息发送/编辑/删除/搜索/转发/置顶 |
| miscellaneous | 2 | 测试/日志 |
| notification | 7 | 通知设置/设备注册 |
| nsfw | 2 | 内容设置 |
| passkey | 6 | Passkey 认证 |
| passport | 11 | Telegram Passport |
| premium | 5 | Premium/支付 |
| privacysettings | 8 | 隐私设置/全局隐私 |
| qrcode | 3 | QR 码登录 |
| savedmessagedialogs | 9 | 保存的消息对话 |
| sponsoredmessages | 11 | 赞助消息 |
| tos | 2 | 服务条款 |
| updates | 3 | 获取状态/差异/频道差异 |
| userchannelprofiles | 18 | 用户资料/头像/频道资料 |
| usernames | 5 | 用户名管理 |
| users | 4 | 用户查询 |
auth.sendCode 的 handler 展示 BFF 的典型模式:
常见错误(TL/协议层):
app/bff/<module>/internal/core/*_handler.goapp/bff/bff/internal/server/server.goteamgramd/etc/bff.yaml