消息机器人管理面板
{{ screen === 'setup' ? '首次使用,请设置管理员密码' : '请输入管理员密码' }}
{{ screen === 'setup' ? '设置并进入' : '登录' }}
消息机器人
tg-bot-hub
{{ botSummary }}
退出登录
概览
链路配置
消息流
用户
系统自检
今日收到
{{ stats.messages_today }}
累计 {{ stats.messages_total }}
今日已转发
{{ stats.forwarded_today }}
门禁拦截 {{ stats.gated_today }}
用户总数
{{ stats.users_total }}
按机器人分别统计
媒体文件
{{ stats.media_files }}
{{ fmtBytes(stats.media_bytes) }}
数据库
{{ fmtBytes(stats.db_bytes) }}
SQLite WAL
运行时长
{{ fmtUptime(status.uptime_sec) }}
v{{ status.version }}
{{ bot.online ? '在线' : '未运行' }}
启动于 {{ fmtTime(bot.started_ts) }}
{{ bot.last_error }}
刷新
立即备份
新建链路
刷新
每条链路可单独填写 Bot Token、目标用户、自动回复与关注检测
{{ scope.row.bot_username ? '@' + scope.row.bot_username : scope.row.bot_id }}
{{ scope.row.bot_online ? '在线' : '未运行' }}
{{ scope.row.source_user_id || '全部' }}
@{{ scope.row.target_username || scope.row.target_chat_id }}
等待目标发消息
{{ replyLabel(scope.row.auto_reply) }}
{{ gateCount(scope.row) ? gateCount(scope.row) + ' 项' : '关闭' }}
{{ scope.row.enabled ? '启用' : '停用' }}
编辑
删除
还没有链路,点击「新建链路」开始
查询
共 {{ messageTotal }} 条
{{ typeGlyph(msg.message_type) }}
{{ typeLabel(msg.message_type) }}
{{ displayName(msg) }}
{{ fmtTime(msg.received_ts) }}
{{ msg.text || msg.caption || '(无文本内容)' }}
{{ statusLabel(msg.forward_status) }}
媒体 >20MB
暂无消息
加载更多
搜索
共 {{ userTotal }} 人
{{ scope.row.first_name || scope.row.username || scope.row.user_id }}
{{ scope.row.username ? '@' + scope.row.username : 'ID ' + scope.row.user_id }}
{{ friendLabel(scope.row.friend_status) }}
{{ fmtTime(scope.row.last_seen_ts) }}
立即检测
每小时自动检测;频道要求机器人是管理员,群组要求机器人已加入
{{ botName(botId) }}
{{ item.ok ? '正常' : '异常' }}
{{ item.chat }}
{{ item.kind === 'channel' ? '频道' : '群组' }}
状态:{{ item.status }}
{{ item.error }}
该机器人未配置关注检测
尚未执行检测
{{ displayName(currentMessage) }}(ID {{ currentMessage.user_id }})
{{ fmtTime(currentMessage.received_ts) }}
{{ typeLabel(currentMessage.message_type) }}
{{ statusLabel(currentMessage.forward_status) }}
{{ currentMessage.bot_id }}
{{ currentMessage.route_id || '无' }}
{{ currentMessage.forward_target || '无' }}
下载媒体文件
{{ currentMessage.text || currentMessage.caption }}
原始元数据
{{ prettyJson(currentMessage.raw_json) }}
对方必须先给这个机器人发过任意消息(/start 也算),否则无法解析
复制(无转发标记)
转发(保留来源标记)
自动回复
关注门禁
删
添加检测项
任一通过
全部通过
取消
保存