diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-10 12:30:18 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-10 12:30:18 +0300 |
commit | 3db096734f38d5bde745cbb46b2c022473a6a063 (patch) | |
tree | ba2fee9967b2222975dbae8f11933c532b711641 /telegram | |
parent | 77f9c9f74e9cb2b8e73ac3b51b7b17541884489e (diff) |
File download priority fine-tuning
Diffstat (limited to 'telegram')
-rw-r--r-- | telegram/handlers.go | 6 |
1 files 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) |