Documentation ¶
Index ¶
- type Bot
- func (b *Bot) GetUpdatesChan() tgbotapi.UpdatesChannel
- func (b *Bot) Send(chatID int64, replyTo int, text string) (tgbotapi.Message, error)
- func (b *Bot) SendAsLiveOutput(chatID int64, replyTo int, feed chan chatgpt.ChatResponse)
- func (b *Bot) SendEdit(chatID int64, messageID int, text string) error
- func (b *Bot) SendTyping(chatID int64)
- func (b *Bot) Stop()
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 (*Bot) GetUpdatesChan ¶
func (b *Bot) GetUpdatesChan() tgbotapi.UpdatesChannel
func (*Bot) SendAsLiveOutput ¶
func (b *Bot) SendAsLiveOutput(chatID int64, replyTo int, feed chan chatgpt.ChatResponse)
func (*Bot) SendTyping ¶
Click to show internal directories.
Click to hide internal directories.