1
0
Fork 0

Write telegram message caption in the toot
continuous-integration/drone/push Build is passing Details

main
Daniele Tricoli 1 year ago
parent a9fdaca4d8
commit 833ad0186e

@ -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