From 7dc106a0904fdcc47b6ed8c374b877a7d85afbf8 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Thu, 3 Feb 2022 16:01:38 -0500 Subject: [PATCH] Refine download priorities --- telegram/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram/handlers.go b/telegram/handlers.go index c83f418..f2d580f 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -133,7 +133,7 @@ func (c *Client) updateUserStatus(update *client.UpdateUserStatus) { func (c *Client) updateNewChat(update *client.UpdateNewChat) { go func() { if update.Chat != nil && update.Chat.Photo != nil && update.Chat.Photo.Small != nil { - _, err := c.DownloadFile(update.Chat.Photo.Small.Id, 32, true) + _, err := c.DownloadFile(update.Chat.Photo.Small.Id, 10, true) if err != nil { log.Error("Failed to download the chat photo") @@ -198,7 +198,7 @@ func (c *Client) updateNewMessage(update *client.UpdateNewMessage) { // download file(s) if file != nil && !file.Local.IsDownloadingCompleted { - newFile, err := c.DownloadFile(file.Id, 10, true) + newFile, err := c.DownloadFile(file.Id, 1, true) if err == nil { file = newFile }