Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
indes authored Nov 26, 2018
1 parent 14fd077 commit 108a2a2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Telepush
Telegram 推送机器人


## 安装
### now 搭建
建议部署在 now 上,免费的套餐够用。
部署教程参考这篇文章:[📟如何搭建一个属于自己的 Telegram 推送 Bot - 瞎说](https://hesay.me/posts/your-own-telegram-push-service/)

### vps 安装
1. 下载代码
```shell
git clone https://github.com/indes/telepush
Expand All @@ -17,3 +23,20 @@ composer install
```shell
cp .env.example .env
```

.env
```shell
BOT_TOKEN=<Telegram bot token>
OWNER_ID=<你的 Telegram id>
PROXY=<如果服务器不能正常访问telegram api服务器,请设置代理,例如:socks5h://127.0.0.1:1080,否则此项留空>
```

4. 本地测试
```
php -S localhost:8080 -t public
```

## 使用
```
curl -X GET http://<your_url>:<port>/api/send?msg=HelloWorld
```

0 comments on commit 108a2a2

Please sign in to comment.