From 73313ae199ffc96811ebf22c1f84329696d26c7a Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Sat, 12 Sep 2020 17:22:12 +0800 Subject: [PATCH] Core: place the DataCenterIPVersion as first optional parameter It's the most important one so it should be the first. --- src/TgSharp.Core/TelegramClient.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/TgSharp.Core/TelegramClient.cs b/src/TgSharp.Core/TelegramClient.cs index 8dec139..0593697 100644 --- a/src/TgSharp.Core/TelegramClient.cs +++ b/src/TgSharp.Core/TelegramClient.cs @@ -51,8 +51,11 @@ namespace TgSharp.Core /// A delegate to invoke when a connection is needed and that will return a TcpClient that will be used to connect /// Indicates the preferred IpAddress version to use to connect to a Telegram server public TelegramClient(int apiId, string apiHash, - ISessionStore store = null, string sessionUserId = "session", TcpClientConnectionHandler handler = null, - DataCenterIPVersion dcIpVersion = DataCenterIPVersion.Default) + DataCenterIPVersion dcIpVersion = DataCenterIPVersion.Default, + ISessionStore store = null, + string sessionUserId = "session", + TcpClientConnectionHandler handler = null + ) { if (apiId == default(int)) throw new MissingApiConfigurationException("API_ID");