Documentation
¶
Overview ¶
Package bot implements the Telegram bot functionality for expense tracking.
Index ¶
- func GetBudgetKeyboard() tgbotapi.InlineKeyboardMarkup
- func GetCategoryGroupKeyboard(categories []*models.Category) tgbotapi.InlineKeyboardMarkup
- func GetCategoryKeyboard() tgbotapi.InlineKeyboardMarkup
- func GetConfirmationKeyboard() tgbotapi.InlineKeyboardMarkup
- func GetDeleteExpenseKeyboard(expenses []*models.Expense) tgbotapi.InlineKeyboardMarkup
- func GetEditExpenseKeyboard(expenses []*models.Expense) tgbotapi.InlineKeyboardMarkup
- func GetEditFieldKeyboard() tgbotapi.InlineKeyboardMarkup
- func GetMainMenuKeyboard() tgbotapi.ReplyKeyboardMarkup
- func GetReminderKeyboard() tgbotapi.InlineKeyboardMarkup
- func GetReportKeyboard() tgbotapi.InlineKeyboardMarkup
- func GetSettingsKeyboard() tgbotapi.InlineKeyboardMarkup
- type Bot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBudgetKeyboard ¶
func GetBudgetKeyboard() tgbotapi.InlineKeyboardMarkup
GetBudgetKeyboard returns the budget management keyboard
func GetCategoryGroupKeyboard ¶
func GetCategoryGroupKeyboard(categories []*models.Category) tgbotapi.InlineKeyboardMarkup
GetCategoryGroupKeyboard returns the category group keyboard
func GetCategoryKeyboard ¶
func GetCategoryKeyboard() tgbotapi.InlineKeyboardMarkup
GetCategoryKeyboard returns the category group keyboard
func GetConfirmationKeyboard ¶
func GetConfirmationKeyboard() tgbotapi.InlineKeyboardMarkup
GetConfirmationKeyboard returns the confirmation keyboard
func GetDeleteExpenseKeyboard ¶
func GetDeleteExpenseKeyboard(expenses []*models.Expense) tgbotapi.InlineKeyboardMarkup
GetDeleteExpenseKeyboard returns the delete expense selection keyboard
func GetEditExpenseKeyboard ¶
func GetEditExpenseKeyboard(expenses []*models.Expense) tgbotapi.InlineKeyboardMarkup
GetEditExpenseKeyboard returns the edit expense selection keyboard
func GetEditFieldKeyboard ¶
func GetEditFieldKeyboard() tgbotapi.InlineKeyboardMarkup
GetEditFieldKeyboard returns the edit field selection keyboard
func GetMainMenuKeyboard ¶
func GetMainMenuKeyboard() tgbotapi.ReplyKeyboardMarkup
GetMainMenuKeyboard returns the main menu keyboard
func GetReminderKeyboard ¶
func GetReminderKeyboard() tgbotapi.InlineKeyboardMarkup
GetReminderKeyboard returns the reminder management keyboard
func GetReportKeyboard ¶
func GetReportKeyboard() tgbotapi.InlineKeyboardMarkup
GetReportKeyboard returns the report selection keyboard
func GetSettingsKeyboard ¶
func GetSettingsKeyboard() tgbotapi.InlineKeyboardMarkup
GetSettingsKeyboard returns the settings keyboard
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot represents the Telegram bot
func NewBot ¶
func NewBot(ctx context.Context, token string, dbClient database.Storage, logger logger.Logger) (*Bot, error)
NewBot creates a new bot instance
func (*Bot) GetMetrics ¶
GetMetrics returns the current metrics
func (*Bot) HandleUpdate ¶
HandleUpdate processes incoming updates from Telegram