Skip to content

Commit 4435362

Browse files
authored
Create README.md
1 parent 17648a1 commit 4435362

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# 🤖 Telegram Auto Sign
2+
3+
基于 GitHub Actions 和 Python (Telethon) 实现的 Telegram 每日自动签到脚本。利用个人账号 (Userbot) 每日自动向指定的 Telegram 机器人发送签到指令,彻底解放双手。
4+
5+
## ✨ 核心特性
6+
- **☁️ 零成本部署**:依托 GitHub Actions 自动运行,无需本地服务器或 VPS。
7+
- **👥 多 Bot 支持**:支持同时向多个机器人发送签到指令。
8+
- **🎲 智能防风控**:内置 `1~20` 分钟随机延迟启动,以及消息发送间隔随机停顿,避免触发 TG 反垃圾机制。
9+
- **📝 自动日志保活**:每次运行后自动将签到结果写入 `checkin.log` 并推送到本仓库,完美绕过 GitHub Actions 60 天无代码提交自动暂停的限制。
10+
11+
## 🚀 如何使用 (部署指南)
12+
13+
### 1. 准备工作:获取 API 凭据
14+
1. 登录 [Telegram API 平台](https://my.telegram.org/)
15+
2. 进入 **API development tools**,创建一个应用。
16+
3. 记下你的 `App api_id``App api_hash`
17+
18+
### 2. 准备工作:获取 Session String
19+
在本地电脑 Python 环境中安装依赖 `pip install telethon`,并运行以下代码获取你的专属 Session 字符串:
20+
```python
21+
import asyncio
22+
from telethon import TelegramClient
23+
from telethon.sessions import StringSession
24+
25+
api_id = '你的 api_id'
26+
api_hash = '你的 api_hash'
27+
28+
async def main():
29+
client = TelegramClient(StringSession(), api_id, api_hash)
30+
await client.start()
31+
print("你的 Session 字符串是:\n", client.session.save())
32+
33+
if __name__ == '__main__':
34+
asyncio.run(main())

0 commit comments

Comments
 (0)