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

【Bug】消息过长超出telegram bot限制 #12

Closed
jizizr opened this issue Feb 15, 2022 · 7 comments
Closed

【Bug】消息过长超出telegram bot限制 #12

jizizr opened this issue Feb 15, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@jizizr
Copy link

jizizr commented Feb 15, 2022

版本号:0.01

运行环境:ubuntu 20.04

问题描述:telegram bot 推送消息过长

日志信息:

telegram bot 发送消息的限制为2500字,故可以先转换为文本文档,再发送这个文件。或者可以简单描述执行情况再附上文件

@jizizr jizizr changed the title 【Bug】请在标题中清晰地概述你要反馈的异常或缺陷 【Bug】消息过长超出telegram bot限制 Feb 15, 2022
@RayWangQvQ
Copy link
Owner

为什么会超过2500字?是因为多账号吗?

@jizizr
Copy link
Author

jizizr commented Feb 23, 2022

为什么会超过2500字?是因为多账号吗?

是的

@RayWangQvQ
Copy link
Owner

或者,添加一个配置,可以设置每个账号单独推送,是否可以解决这个问题?

@jizizr
Copy link
Author

jizizr commented Feb 24, 2022

或者,添加一个配置,可以设置每个账号单独推送,是否可以解决这个问题?

可以

@jizizr
Copy link
Author

jizizr commented Feb 24, 2022

建议推送消息可以简结一点,比如:
签到 =>成功 经验 +5
天选时刻 => 成功 共参加 n 次抽奖

@RayWangQvQ
Copy link
Owner

当前推送的消息,之所以不够简洁,是因为当初构想是,运行时控制台(console)打印什么日志,最后推送出来就是什么样。

后面可以考虑加个简介模式,运行时先记录信息到缓存里,运行结束后再统一生成固定文本,然后推送。

@RayWangQvQ RayWangQvQ added the enhancement New feature or request label Mar 9, 2022
@RayWangQvQ RayWangQvQ self-assigned this Mar 9, 2022
@RayWangQvQ
Copy link
Owner

v0.0.6版本已新增每个账号单独推送的配置

@jizizr jizizr closed this as completed Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants