Merge pull request #51 from victorhdchagas/fix/telegram-permission-check

Fix Telegram channel permission check
This commit is contained in:
yinwm 2026-02-12 18:41:34 +08:00 committed by GitHub
commit 8968d58fed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -343,7 +343,7 @@ func (c *TelegramChannel) handleMessage(ctx context.Context, update telego.Updat
"is_group": fmt.Sprintf("%t", message.Chat.Type != "private"),
}
c.HandleMessage(senderID, fmt.Sprintf("%d", chatID), content, mediaPaths, metadata)
c.HandleMessage(fmt.Sprintf("%d", user.ID), fmt.Sprintf("%d", chatID), content, mediaPaths, metadata)
}
func (c *TelegramChannel) downloadPhoto(ctx context.Context, fileID string) string {