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部分群收不到消息 #1202

Open
phoulx opened this issue Mar 17, 2025 · 0 comments
Open

[Bug]: Telegram部分群收不到消息 #1202

phoulx opened this issue Mar 17, 2025 · 0 comments
Labels
bug? Bug或Bug修复相关 新手入门 新贡献者可以先尝试解决这些

Comments

@phoulx
Copy link

phoulx commented Mar 17, 2025

消息平台适配器

Telegram

运行环境

Docker

异常情况

Telegram有的群组,bot无法收到消息,且已排除bot隐私设置或管理权限的问题。
排查下来原因是Telegram有(至少)两种群,分别叫group和supergroup,而目前的适配器仅包含对前者的判断,导致後一种类的群消息丢失。

复现步骤

建一个群,并设置为public,拉bot进群,发消息,即可复现

因为public群或人数较多的群会自动转为supergroup

修复?

将判断条件改为in ['group', 'supergroup'],问题得到解决,暂不清楚是否有其他需要一并修改的地方。
另外建议这里也加下日志?之前因为看不到未处理消息的错误日志,一度以为是群设置或bot帐号问题导致消息没发过来...

启用的插件

No response

@phoulx phoulx added the bug? Bug或Bug修复相关 label Mar 17, 2025
@RockChinQ RockChinQ added the 新手入门 新贡献者可以先尝试解决这些 label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Bug或Bug修复相关 新手入门 新贡献者可以先尝试解决这些
Projects
None yet
Development

No branches or pull requests

2 participants