twitter

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(username, password, _, _ string) *Client

func (*Client) ReplyTo added in v0.4.0

func (c *Client) ReplyTo(tweetURL, message string) (string, error)

ReplyTo posts a reply to an existing tweet and returns the URL of the new reply.

func (*Client) SelfEngage added in v0.6.0

func (c *Client) SelfEngage(tweetURL, comment string) error

SelfEngage likes, reposts, and comments on a tweet in a single browser session. This boosts engagement velocity in the first few minutes after posting. comment is optional — pass empty string to skip commenting.

func (*Client) Thread added in v0.4.0

func (c *Client) Thread(tweets []string, imagePath string) (string, error)

Thread posts a sequence of tweets as a thread using reply-chaining. The first tweet is posted normally; each subsequent tweet replies to the previous one. Returns the URL of the first tweet.

func (*Client) Tweet

func (c *Client) Tweet(message string) (string, error)

Tweet posts a text-only tweet and returns the URL of the posted tweet.

func (*Client) TweetWithMedia added in v0.3.0

func (c *Client) TweetWithMedia(message, imagePath string) (string, error)

TweetWithMedia posts a tweet with an attached image and returns the tweet URL.

type Cookie struct {
	Name     string  `json:"name"`
	Value    string  `json:"value"`
	Domain   string  `json:"domain"`
	Path     string  `json:"path"`
	Expires  float64 `json:"expirationDate"`
	HTTPOnly bool    `json:"httpOnly"`
	Secure   bool    `json:"secure"`
}

Cookie represents a browser cookie exported from Cookie-Editor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL