From ceb5fba4ac686841869064aa71698e3e5a275d69 Mon Sep 17 00:00:00 2001 From: Marc R Kellerman <9411143+mkellerman@users.noreply.github.com> Date: Thu, 3 Jan 2019 17:06:04 -0800 Subject: [PATCH] Update TelegramClient.cs --- TLSharp.Core/TelegramClient.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TLSharp.Core/TelegramClient.cs b/TLSharp.Core/TelegramClient.cs index 4888143..8f6013d 100644 --- a/TLSharp.Core/TelegramClient.cs +++ b/TLSharp.Core/TelegramClient.cs @@ -263,6 +263,9 @@ namespace TLSharp.Core if (!IsUserAuthorized()) throw new InvalidOperationException("Authorize user first!"); + if (offset_peer == null) + offset_peer = new TLInputPeerSelf(); + var req = new TLRequestGetDialogs() { OffsetDate = offset_date,