From 833ad0186e5550c613ce3879ce2e85e29757268f Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Sat, 5 Mar 2022 03:15:26 +0100 Subject: [PATCH] Write telegram message caption in the toot --- cmd/run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/run.go b/cmd/run.go index 6e79790..3fafcb0 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -97,6 +97,9 @@ the specified Mastodon account.`, mediaIds := [...]mastodon.ID{attachment.ID} status, err := c.PostStatus(context.Background(), &mastodon.Toot{ + // Write the caption in the toot because it almost probably + // doesn't describe the image. + Status: update.Message.Caption, MediaIDs: mediaIds[:], Visibility: parseMastodonVisibility(os.Getenv(MASTODON_TOOT_VISIBILITY)), })