aboutsummaryrefslogtreecommitdiff
path: root/telegram/utils.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-04 18:41:55 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-04 18:41:55 +0300
commitf7e46d5033660d12371e68e8e41586573086d156 (patch)
treebfb010c36986b97306b899cf9e6c08c9ff3c8545 /telegram/utils.go
parent7dc106a0904fdcc47b6ed8c374b877a7d85afbf8 (diff)
Use UniqueId for file URLs
Diffstat (limited to 'telegram/utils.go')
-rw-r--r--telegram/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/utils.go b/telegram/utils.go
index 9b0ccba..ffa50b4 100644
--- a/telegram/utils.go
+++ b/telegram/utils.go
@@ -344,7 +344,7 @@ func (c *Client) formatContent(file *client.File, filename string) string {
"%s (%v kbytes) | %s",
filename,
file.Size/1024,
- c.formatFilePath(c.content.Link, file.Remote.Id, filepath.Ext(file.Local.Path)),
+ c.formatFilePath(c.content.Link, file.Remote.UniqueId, filepath.Ext(file.Local.Path)),
)
}