1
0
Fork 0

Write telegram message caption in the toot

main
Daniele Tricoli 6 months ago
parent a9fdaca4d8
commit 833ad0186e
  1. 3
      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)),
})

Loading…
Cancel
Save