Documentation ¶
Index ¶
- Variables
- func Authenticate(s store.Store) telebot.MiddlewareFunc
- func ErrorHandler() telebot.MiddlewareFunc
- type BotHandler
- func (b *BotHandler) ClearInputState(c telebot.Context) error
- func (b *BotHandler) CommandHelp(c telebot.Context) error
- func (b *BotHandler) CommandInvite(c telebot.Context) error
- func (b *BotHandler) CommandReset(c telebot.Context) error
- func (b *BotHandler) CommandSystemPrompt(c telebot.Context) error
- func (b *BotHandler) Configure(bot *telebot.Bot)
- func (b *BotHandler) SetDefaultSystemPrompt(c telebot.Context) error
- func (b *BotHandler) Text(c telebot.Context) error
- func (b *BotHandler) TranscribeAudio(c telebot.Context) error
- func (b *BotHandler) TranscribeDocument(c telebot.Context) error
- func (b *BotHandler) TranscribeVideo(c telebot.Context) error
- func (b *BotHandler) TranscribeVideoNote(c telebot.Context) error
- func (b *BotHandler) TranscribeVoice(c telebot.Context) error
- func (b *BotHandler) Unsupported(c telebot.Context) error
- func (b *BotHandler) Wait()
- type Completion
- type Cryptor
- type OggMp3Converter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotApproved = errors.New("not approved") ErrContextTooLong = errors.New("context too long") ErrUserNotFound = errors.New("user not found") ErrsPersistent = []error{ ErrContextTooLong, } )
View Source
var ErrMessageVersion = fmt.Errorf("unsupported message version")
Functions ¶
func Authenticate ¶
func ErrorHandler ¶
func ErrorHandler() telebot.MiddlewareFunc
Types ¶
type BotHandler ¶
type BotHandler struct {
// contains filtered or unexported fields
}
func NewBotHandler ¶
func (*BotHandler) ClearInputState ¶
func (b *BotHandler) ClearInputState(c telebot.Context) error
func (*BotHandler) CommandHelp ¶
func (b *BotHandler) CommandHelp(c telebot.Context) error
func (*BotHandler) CommandInvite ¶
func (b *BotHandler) CommandInvite(c telebot.Context) error
func (*BotHandler) CommandReset ¶
func (b *BotHandler) CommandReset(c telebot.Context) error
func (*BotHandler) CommandSystemPrompt ¶
func (b *BotHandler) CommandSystemPrompt(c telebot.Context) error
func (*BotHandler) Configure ¶
func (b *BotHandler) Configure(bot *telebot.Bot)
func (*BotHandler) SetDefaultSystemPrompt ¶
func (b *BotHandler) SetDefaultSystemPrompt(c telebot.Context) error
func (*BotHandler) Text ¶
func (b *BotHandler) Text(c telebot.Context) error
func (*BotHandler) TranscribeAudio ¶
func (b *BotHandler) TranscribeAudio(c telebot.Context) error
func (*BotHandler) TranscribeDocument ¶
func (b *BotHandler) TranscribeDocument(c telebot.Context) error
func (*BotHandler) TranscribeVideo ¶
func (b *BotHandler) TranscribeVideo(c telebot.Context) error
func (*BotHandler) TranscribeVideoNote ¶
func (b *BotHandler) TranscribeVideoNote(c telebot.Context) error
func (*BotHandler) TranscribeVoice ¶
func (b *BotHandler) TranscribeVoice(c telebot.Context) error
func (*BotHandler) Unsupported ¶
func (b *BotHandler) Unsupported(c telebot.Context) error
func (*BotHandler) Wait ¶
func (b *BotHandler) Wait()
type Completion ¶
type Cryptor ¶
type Cryptor interface { EncryptMessage(user *store.User, message *store.Message) error DecryptMessage(user *store.User, message *store.Message) error }
func NewAesEncryptor ¶
type OggMp3Converter ¶
type OggMp3Converter struct {
// contains filtered or unexported fields
}
func NewOggMp3Converter ¶
func NewOggMp3Converter(input, output string) *OggMp3Converter
Click to show internal directories.
Click to hide internal directories.