public void Play(TLMessage message) { var document = message.GetDocument(); if (document == null || !TLMessage.IsGif(document)) { return; } var fileName = FileUtils.GetTempFileUrl(document.GetFileName()); if (_old.ContainsKey(fileName)) { Play(new TLMessage[0], false); } else { Play(new[] { message }, true); } }