mirror of
https://git.phreedom.club/localhost_frssoft/mastodon-group-bot.git
synced 2024-11-18 08:33:02 +00:00
14 lines
275 B
Go
14 lines
275 B
Go
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
|
|
}
|