From 3db096734f38d5bde745cbb46b2c022473a6a063 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Mon, 10 Jan 2022 04:30:18 -0500 Subject: [PATCH] File download priority fine-tuning --- telegram/handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram/handlers.go b/telegram/handlers.go index 9b18656..bb4beff 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -137,7 +137,7 @@ func (c *Client) updateNewChat(update *client.UpdateNewChat) { _, err := c.client.DownloadFile(&client.DownloadFileRequest{ FileID: update.Chat.Photo.Small.ID, Priority: 32, - Synchronous: true, + Synchronous: false, }) if err != nil { @@ -202,8 +202,8 @@ func (c *Client) updateNewMessage(update *client.UpdateNewMessage) { if file != nil && !file.Local.IsDownloadingCompleted { c.client.DownloadFile(&client.DownloadFileRequest{ FileID: file.ID, - Priority: 32, - Synchronous: true, + Priority: 10, + Synchronous: false, }) } // OTR support (I do not know why would you need it, seriously)