правки
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user