aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--telegram/handlers.go4
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
}