private static Preview GetPreview(IPreviewLoader previewLoader, PhotoMessageModel model)
        {
            if (model.PhotoData != null)
            {
                return(previewLoader.GetPreview(model.PhotoData, PreviewQuality.High));
            }

            return(null);
        }
        private static Preview GetPreview(IPreviewLoader previewLoader, StickerMessageModel model)
        {
            if (model.StickerData?.Thumbnail != null)
            {
                return(previewLoader.GetPreview(model.StickerData.Thumbnail));
            }

            return(null);
        }
        private static Preview GetPreview(IPreviewLoader previewLoader, ReplyModel model)
        {
            if (model.PhotoData != null)
            {
                return(previewLoader.GetPreview(model.PhotoData, PreviewQuality.Low));
            }

            if (model.VideoData?.Thumbnail != null)
            {
                return(previewLoader.GetPreview(model.VideoData.Thumbnail));
            }

            if (model.StickerData?.Thumbnail != null)
            {
                return(previewLoader.GetPreview(model.StickerData.Thumbnail));
            }

            return(null);
        }