mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-14 23:17:30 +08:00
fix bug
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user