diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-04 00:01:38 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-04 00:01:38 +0300 |
commit | 7dc106a0904fdcc47b6ed8c374b877a7d85afbf8 (patch) | |
tree | aa8c1d94bbd943e4d10c4c5c53a1675ffc667fbc /telegram | |
parent | 10e5f31b740de70766618c87020254158c4520d4 (diff) |
Refine download priorities
Diffstat (limited to 'telegram')
-rw-r--r-- | telegram/handlers.go | 4 |
1 files 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 } |