This commit is contained in:
bodqhrohro 2019-12-02 18:32:32 +02:00
parent ca4923f563
commit 40b3c6a768

View file

@ -347,9 +347,8 @@ func (c *Client) contentToFilename(content client.MessageContent) (*client.File,
if len(sizes) > 1 {
file := sizes[len(sizes)-1].Photo
return file, strconv.Itoa(int(file.Id)) + ".jpg"
} else {
return nil, ""
}
return nil, ""
case client.TypeMessageAudio:
audio, _ := content.(*client.MessageAudio)
return audio.Audio.Audio, audio.Audio.FileName