File download priority fine-tuning

calls
Bohdan Horbeshko 2 years ago
parent 77f9c9f74e
commit 3db096734f

@ -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)

Loading…
Cancel
Save