правки

This commit is contained in:
Artem Tsyrulnikov
2026-02-03 19:30:36 +03:00
parent 8b5a9010b7
commit 70b6db0289

View File

@@ -39,6 +39,9 @@ func (t *Telegram) ParseChannelMetaByInvite(ctx context.Context, inviteLink stri
return domain.Channel{}, fmt.Errorf("import invite: %w", err)
}
channel = extractChannelFromUpdates(updates)
case *tg.ChatInvitePeek:
// ChatInvitePeek means we can preview the channel without joining (public channels)
channel = extractChannelFromChat(v.Chat)
default:
return domain.Channel{}, fmt.Errorf("unexpected invite response: %T", v)
}