Skip to content

morooi/morooi-telegram-bot-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

morooi's Telegram Bot

https://t.me/morooi_bot

获取 Docker 镜像

docker pull morooi/morooi-telegram-bot-go:latest

编辑 docker-compose

services:
  morooi-telegram-bot-go:
    container_name: morooi-telegram-bot-go
    image: morooi/morooi-telegram-bot-go:latest
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /home/user/telegram.db:/app/telegram.db
    environment:
      TOKEN: "YOUR TELEGRAM BOT API TOKEN"  # <-- 更改成你的 token
      KEY: "YOUR TELEGRAM BOT API KEY"  # <-- 更改成你的 key
      XRAY_API_HOST: "127.0.0.1"  # <-- 更改成你的 Xray API 监听地址
      XRAY_API_PORT: "8080"  # <-- 更改成你的 Xray API 监听端口
      XRAY_STATS_ADMIN: "XXXXXXX"  # <-- 更改成可以查询流量的 Telegram 用户 ID
      XRAY_STATS_CRON: "*/5 * * * *"  # <-- 数据收集的频率
    restart: unless-stopped

运行

docker compose up -d