This commit is contained in:
lpf
2026-02-17 00:14:12 +08:00
parent ff3ae92acd
commit e5a3ea6863
3 changed files with 93 additions and 40 deletions

View File

@@ -328,6 +328,12 @@ func (c *TelegramChannel) handleMessage(runCtx context.Context, message *telego.
if user == nil {
return
}
if user.IsBot {
logger.DebugCF("telegram", "Ignoring bot-originated message", map[string]interface{}{
"user_id": user.ID,
})
return
}
senderID := fmt.Sprintf("%d", user.ID)