aboutsummaryrefslogtreecommitdiff
path: root/telegram/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/utils.go')
-rw-r--r--telegram/utils.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/telegram/utils.go b/telegram/utils.go
index 8b3eb13..7e9882d 100644
--- a/telegram/utils.go
+++ b/telegram/utils.go
@@ -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