diff --git a/telegram/utils.go b/telegram/utils.go index 39e270e..f60f35f 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -356,6 +356,7 @@ func (c *Client) formatForward(fwd *client.MessageForwardInfo) string { } func (c *Client) formatFile(file *client.File, compact bool) string { + log.Debugf("file: %#v", file) if file == nil || file.Local == nil || file.Remote == nil { return "" } @@ -367,6 +368,7 @@ func (c *Client) formatFile(file *client.File, compact bool) string { src = file.Local.Path // source path _, err := os.Stat(src) if err != nil { + log.Errorf("Cannot access source file: %v", err) return "" }