tgbot

package
v0.0.0-...-98353b0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Username string
	// contains filtered or unexported fields
}

func New

func New(token string, editInterval time.Duration) (*Bot, error)

func (*Bot) GetUpdatesChan

func (b *Bot) GetUpdatesChan() tgbotapi.UpdatesChannel

func (*Bot) Send

func (b *Bot) Send(chatID int64, replyTo int, text string) (tgbotapi.Message, error)

func (*Bot) SendAsLiveOutput

func (b *Bot) SendAsLiveOutput(chatID int64, replyTo int, feed chan chatgpt.ChatResponse)

func (*Bot) SendEdit

func (b *Bot) SendEdit(chatID int64, messageID int, text string) error

func (*Bot) SendTyping

func (b *Bot) SendTyping(chatID int64)

func (*Bot) Stop

func (b *Bot) Stop()

Jump to

Keyboard shortcuts

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