mastodon-group-bot/utils.go

14 lines
275 B
Go
Raw Normal View History

2022-09-08 15:26:25 +03:00
package main
import "github.com/mattn/go-mastodon"
// Posting function
func postToot(toot string, vis string) (*mastodon.Status, error) {
conToot := mastodon.Toot{
Status: toot,
Visibility: vis,
}
status, err := c.PostStatus(ctx, &conToot)
return status, err
}