bing

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 20 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 New

func New(wait time.Duration, session *Session, sessionFile string, proxy string) (*Client, error)

New creates a new bing client

func (*Client) Chat

func (c *Client) Chat(ctx context.Context) (io.ReadWriteCloser, error)

Chat creates a new chat session.

type Conversation

type Conversation struct {
	ConversationId        string              `json:"conversationId,omitempty"`
	ClientId              string              `json:"clientId,omitempty"`
	ConversationSignature string              `json:"conversationSignature,omitempty"`
	Result                *ConversationResult `json:"result"`
}

type ConversationResult

type ConversationResult struct {
	Value   *string `json:"value"`
	Message *string `json:"message"`
}

type Session

type Session struct {
	JA3             string `yaml:"ja3"`
	UserAgent       string `yaml:"user-agent"`
	Language        string `yaml:"language"`
	Cookie          string `yaml:"cookie"`
	SecMsGec        string `yaml:"sec-ms-gec"`
	SecMsGecVersion string `yaml:"sec-ms-gec-version"`
	XClientData     string `yaml:"x-client-data"`
	XMsUserAgent    string `yaml:"x-ms-user-agent"`
}

Jump to

Keyboard shortcuts

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