-
Notifications
You must be signed in to change notification settings - Fork 330
window 简单安装使用
tangyoha edited this page Oct 12, 2023
·
5 revisions
-
进入Release界面
-
点击如图所示的压缩包下载
- 输入 /start
- 输入 /newbot
- 输入 你想创建的机器人名称
- 保存BotToken,替换下一个步骤里面的bot_token
这里的api_hash,api_id是可以直接使用的
api_hash: 6dc06adcb5961d617c347d7776d2ec76
api_id: 21722171
bot_token: 上一步的填这里,注意删除中文,注意:后面留一个空格
file_formats:
audio:
- all
document:
- all
video:
- all
file_path_prefix:
- chat_title
- media_datetime
media_types:
- audio
- photo
- video
- document
- voice
- video_note
- animation #gif
如果需要配置代理访问,则需要向config.yaml加入
proxy:
scheme: socks5
hostname: 代理ip
port: 代理端口
username: 代理用户名
password: 代理密码
如果您的代理不需要授权,您可以省略用户名和密码。然后代理将自动启用。
使用步骤2安装的v2rayN
根据软件左下角显示的端口可以改为
proxy:
hostname: 127.0.0.1
port: 10808
scheme: socks5
如果使用的是clash
默认参数
proxy:
scheme: socks5
hostname: 127.0.0.1
port: 7890
和之前的拼接一下
api_hash: 6dc06adcb5961d617c347d7776d2ec76
api_id: 21722171
bot_token: 上一步的填这里,注意删除中文,注意:后面留一个空格
file_formats:
audio:
- all
document:
- all
video:
- all
file_path_prefix:
- chat_title
- media_datetime
media_types:
- audio
- photo
- video
- document
- voice
- video_note
- animation #gif
proxy:
scheme: socks5
hostname: 127.0.0.1
port: 7890
- 运行程序
- 运行后
如果运行后没有出现下面这个图的提示,请检查你的代理是否有问题
-
需要输入你的账号 如果是
+86
的账号 -
需要输入为
+86 19xxxxxx
-
输入后回车
-
输入收到的验证码
- 运行卡住
如果出现这个,说明你的vpn有问题,需要更换节点
pyrogram
的 Ping
默认超时时间为1s
,如果你的vpn延长很高,请换节点后重试
如果卡住什么都没有则说明你的代理配置
有问题,需要调整vpn软件的规则,如开启全局代理
输入 /help
# 1.下载普通群组所有消息
/download https://t.me/fkdhlg 1 0
# 2.私密群组(频道) 链接为随便复制一条群组消息链接
# 3.下载从第1条消息开始的所有消息
/download https://t.me/12000000 1 0
# 4.下载从第10条消息开始
/download https://t.me/12000000 10 0
# 5.下载从第10条消息开始,100结束
/download https://t.me/12000000 10 100
# 6.直接下载,直接转发消息给你的机器人
# 7.直接下载单条消息
https://t.me/12000000/1
可转发给任意人
- 1.转发群a到群b
# 全部转发
/forward https://t.me/c/a https://t.me/c/b 1 0
# 转发1-100条
/forward https://t.me/c/a https://t.me/c/b 1 100
# 全部转发,添加过滤条件
/forward https://t.me/c/a https://t.me/c/b 1 0 file_size > 10KB
- 2.转发群a到群b
You can discuss with us in the telegram group, or just submit a PR.
您可以在电报群中与我们讨论,或者直接提交 PR。