From 205b6d588cfb6fe319e72063a022a6de941784a2 Mon Sep 17 00:00:00 2001 From: solarin Date: Sat, 11 Apr 2020 19:04:51 +0400 Subject: [PATCH] Core: don't consider MediaOnly DCs at reconnect Fixes https://github.com/sochix/TLSharp/issues/935 --- TLSharp.Core/TelegramClient.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TLSharp.Core/TelegramClient.cs b/TLSharp.Core/TelegramClient.cs index 765ecbf5..e5b0819f 100644 --- a/TLSharp.Core/TelegramClient.cs +++ b/TLSharp.Core/TelegramClient.cs @@ -121,6 +121,8 @@ public TelegramClient(int apiId, string apiHash, else dcs = dcOptions.Where(d => d.Id == dcId); // any + dcs = dcs.Where(d => !d.MediaOnly); + TLDcOption dc; if (dcIpVersion != DataCenterIPVersion.Default) {