From 3fb554b9343126929d1b8ae8889fa1f35bb3da98 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 15 Jul 2025 16:39:50 +0300 Subject: [PATCH] client: add todo for usernames in links [skip ci] --- pkg/connector/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/connector/client.go b/pkg/connector/client.go index 00a49336..c8210648 100644 --- a/pkg/connector/client.go +++ b/pkg/connector/client.go @@ -345,6 +345,7 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge } else if submatches[1] == "premium" { portalKey = client.makePortalKeyFromID(ids.PeerTypeUser, 777000) } else { + // FIXME why does this not handle usernames?? userID, err := strconv.ParseInt(submatches[1], 10, 64) if err != nil { log.Warn().Err(err).Msg("error parsing user ID")