chore(lint): format telegram channel file

This commit is contained in:
mosir 2026-02-28 13:05:29 +08:00
parent f34ca8369b
commit 7b6b9c4676

View file

@ -364,9 +364,9 @@ func (c *TelegramChannel) handleMessage(ctx context.Context, message *telego.Mes
// Defensive fallback: ignore messages from this bot by username to avoid self-loop echoes. // Defensive fallback: ignore messages from this bot by username to avoid self-loop echoes.
if botUsername := c.bot.Username(); botUsername != "" && strings.EqualFold(user.Username, botUsername) { if botUsername := c.bot.Username(); botUsername != "" && strings.EqualFold(user.Username, botUsername) {
logger.DebugCF("telegram", "Ignoring self message by username", map[string]any{ logger.DebugCF("telegram", "Ignoring self message by username", map[string]any{
"user_id": user.ID, "user_id": user.ID,
"username": user.Username, "username": user.Username,
"bot_name": botUsername, "bot_name": botUsername,
}) })
return nil return nil
} }