Mastodon support

This commit is contained in:
2022-11-04 06:45:20 +00:00
parent b542fcf901
commit 97c9006fef
7 changed files with 95 additions and 4 deletions

14
mastodon/toot.go Normal file
View File

@ -0,0 +1,14 @@
package mastodon
import (
"context"
"github.com/mattn/go-mastodon"
)
func (m *Mastodon) Toot(message string) error {
_, err := m.client.PostStatus(context.Background(), &mastodon.Toot{
Status: message,
})
return err
}