pip install -U tg-signer
or for speedup:
pip install "tg-signer[tgcrypto]"
Usage: tg-signer <command> [task_name]
Available commands: list, login, run, run_once, reconfig
list: 列出已有配置
login: 登录账号(用于获取session)
run: 根据配置运行签到
run_once: 根据配置运行一次签到
reconfig: 重新配置
e.g.:
tg-signer run
tg-signer run my_sign # 不询问直接运行'my_sign'任务
tg-signer run_once my_sign # 直接运行一次'my_sign'任务
use env TG_PROXY
e.g.:
export TG_PROXY=socks5://127.0.0.1:7890
tg-signer run
Configure according to the prompts. The data and configuration are stored in the .signer
directory.
Then run tree .signer
, you will see:
.signer
├── latest_chats.json # 获取的最近对话
├── me.json # 个人信息
└── signs
└── openai # 签到任务名
├── config.json # 签到配置
└── sign_record.json # 签到记录
3 directories, 4 files