chore: update config and readme
This commit is contained in:
11
README.md
11
README.md
@@ -1,8 +1,8 @@
|
||||
# Save Any Bot
|
||||
|
||||
把 Telegram 的文件保存到各类存储端.
|
||||
把 Telegram 的文件保存到各类存储端.
|
||||
|
||||
> *就像 PikPak Bot 一样*
|
||||
> _就像 PikPak Bot 一样_
|
||||
|
||||
## 部署
|
||||
|
||||
@@ -10,11 +10,6 @@
|
||||
|
||||
在解压后目录新建 `config.toml` 文件, 参考 [config.toml.example](https://github.com/krau/SaveAny-Bot/blob/main/config.example.toml) 编辑配置文件.
|
||||
|
||||
> [!TIP]
|
||||
> 由于 Telegram 官方 Bot API 的限制, Bot 无法下载大于 20MB 的文件. 你需要部署一个本地的 Telegram Bot API 来解决这个问题, 然后将配置文件中的 telegram.api 改为你自己的 api 地址.
|
||||
>
|
||||
> 参考: [telegram-bot-api-compose](https://github.com/krau/telegram-bot-api-compose)
|
||||
|
||||
运行:
|
||||
|
||||
```bash
|
||||
@@ -24,4 +19,4 @@ chmod +x saveany-bot
|
||||
|
||||
## 使用
|
||||
|
||||
向 Bot 发送(转发)文件, 按照提示操作.
|
||||
向 Bot 发送(转发)文件, 按照提示操作.
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[telegram]
|
||||
token = "" # Bot Token
|
||||
admins = [777000] # 你的 user_id
|
||||
api = "https://api.telegram.org"
|
||||
token = "" # Bot Token
|
||||
admins = [777000] # 你的 user_id
|
||||
api_id = 123456 # Telegram API ID
|
||||
api_hash = "0123456789abcdef0123456789abcdef" # Telegram API Hash
|
||||
|
||||
[log]
|
||||
level = "DEBUG" # 日志等级
|
||||
|
||||
@@ -34,7 +34,6 @@ type telegramConfig struct {
|
||||
Token string `toml:"token" mapstructure:"token"`
|
||||
AppID int32 `toml:"app_id" mapstructure:"app_id"`
|
||||
AppHash string `toml:"app_hash" mapstructure:"app_hash"`
|
||||
API string `toml:"api" mapstructure:"api"`
|
||||
Admins []int64 `toml:"admins" mapstructure:"admins"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user