Documentation ¶
Overview ¶
Credits to https://github.com/rodjunger/chatgptauth
Credits to https://github.com/rodjunger/chatgptauth
Credits to https://github.com/rodjunger/chatgptauth
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
Auth contains the state for an authenticated user's session.
func NewAuthClient ¶
NewAuthClient creates a new authenticator, performing valiation on the parameters. If the logger pointer is nil, a NOOP logger is used.
func (*Auth) Begin ¶
Begin starts the authentication process, up to the point where a captcha can be presented or not. if there's no captcha, Finish() can be called with an empty captcha answer, if not, the captcha must be solved and passed to finish. the Captcha type has some helpers to convert the captcha to a png or write it to a file (as png too)
type AuthSessionResponse ¶
type Captcha ¶
type Captcha string
type ChatGPT ¶
type ChatGPT struct {
// contains filtered or unexported fields
}
func NewChatGPT ¶
func NewChatGPTWithClient ¶
func (*ChatGPT) NewConversation ¶
func (c *ChatGPT) NewConversation(conversationId string) *Conversation
type Conversation ¶
func (*Conversation) SendMessage ¶
type ConversationRequest ¶
type ConversationResponse ¶
type Credentials ¶
type TaskHandler ¶
type TaskManager ¶
type TaskManager struct {
// contains filtered or unexported fields
}
func NewTaskManager ¶
func NewTaskManager(email, password, sessionToken, userAgent, cfClearance string) *TaskManager
func (*TaskManager) SendTask ¶
func (tm *TaskManager) SendTask(task *Task)