mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Fix links to tiny images
This commit is contained in:
parent
f7e46d5033
commit
39d38fb487
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ func (c *Client) contentToFilename(content client.MessageContent) (*client.File,
|
|||
case client.TypeMessagePhoto:
|
||||
photo, _ := content.(*client.MessagePhoto)
|
||||
sizes := photo.Photo.Sizes
|
||||
if len(sizes) > 1 {
|
||||
if len(sizes) >= 1 {
|
||||
file := sizes[len(sizes)-1].Photo
|
||||
return file, strconv.FormatInt(int64(file.Id), 10) + ".jpg"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue