Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrUnknownCommand = "Invalid Command" ErrInvalidPrompt = "Invalid Prompt" ErrImagineTimeOut = "Prompt timeout" ErrTranslationFailed = "Error when trying to translate" )
Variables ¶
This section is empty.
Functions ¶
func GetPromptURL ¶
Types ¶
type ResponseData ¶
type ResponseData struct { Data struct { Translations []struct { TranslatedText string `json:"translatedText"` } `json:"translations"` } `json:"data"` }
type TelegramBot ¶
type TelegramBot struct { Functions // contains filtered or unexported fields }
func NewTelegramBot ¶
func NewTelegramBot(token, apikey string) *TelegramBot
func (*TelegramBot) Start ¶
func (tb *TelegramBot) Start() error
Click to show internal directories.
Click to hide internal directories.