Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

消息过长导致的服务端错误 #27

Closed
WangEdward opened this issue May 24, 2021 · 1 comment
Closed

消息过长导致的服务端错误 #27

WangEdward opened this issue May 24, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@WangEdward
Copy link
Contributor

运行环境

Debian 10, 使用 DownloadBot_0.0.5_Linux_x86_64.tar.gz 安装

报错内容

2021/05/24 18:29:50 [{86e3eeffd4b075f6}] Download started!
2021/05/24 18:29:51 [{86e3eeffd4b075f6}] Download paused!
2021/05/24 18:29:51 Bad Request: message is too long
panic: Bad Request: message is too long

goroutine 14 [running]:
log.Panic(0xc00029b730, 0x1, 0x1)
        D:/program_app/go/src/log/log.go:351 +0xac
main.dropErr(...)
        D:/program_data/go/DownloadBot/main.go:14
main.TMSelectMessage(0xc000155c20)
        D:/program_data/go/DownloadBot/Telegram.go:169 +0x1a0d
created by main.tgBot
        D:/program_data/go/DownloadBot/Telegram.go:707 +0x85d

可能原因

根据TG官方文档, API 每条消息只能支持4096字节,或许可使用分段方式发送?

@gaowanliang
Copy link
Owner

目前准备做成图片的形式,但是怎么展示还没想好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants