]> git.giacomolli.uk - onechat/blobdiff - image_show.go
Log image and message sends
[onechat] / image_show.go
index 80204c1b3023cb49f6cf11a4b1a518e72681bc5d..004702977287e0fea44b627184b868935c6d6858 100644 (file)
@@ -31,6 +31,8 @@ func (s *ImageShow) Show(ctx context.Context, name, caption string) (string, err
                if err != nil {
                        return "", fmt.Errorf("show Telegram image: %w", err)
                }
+
+               s.bot.logger.Info("image sent")
        }
 
        return imageText([]string{name}, caption) + "\n" + path, nil