Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot stores all the information and connection to the database.
func (*Bot) AddProduct ¶
AddProduct adds a new energy value for the given product.
func (*Bot) RespondTo ¶
func (b *Bot) RespondTo(msg *tgbotapi.Message) tgbotapi.MessageConfig
RespondTo the given message from the user.
func (*Bot) RespondToKeyboard ¶
func (b *Bot) RespondToKeyboard(msg *tgbotapi.CallbackQuery) tgbotapi.EditMessageTextConfig
RespondToKeyboard the given message from the user.
Click to show internal directories.
Click to hide internal directories.