Documentation
¶
Index ¶
- type Bot
- func (b *Bot) DeleteMessage(messageID int) error
- func (b *Bot) SendBPReminderNotification(userID int64, enhanced bool) (int, error)
- func (b *Bot) SendExerciseList(sessionID int64, chatID int64) (int, error)
- func (b *Bot) SendExercisePrompt(sessionID int64, exerciseID int64, exerciseName string, sets, repsMin int, ...) (int, error)
- func (b *Bot) SendGroupNotification(meds []store.Medication, intakeByMedication map[int64]int64, target time.Time) (int, error)
- func (b *Bot) SendLowStockWarning(text string) error
- func (b *Bot) SendNotification(text string, intakeID int64, medicationID int64) (int, error)
- func (b *Bot) SendSimpleNotification(text string, buttons []tgbotapi.InlineKeyboardButton) (int, error)
- func (b *Bot) SendWeightReminderNotification(userID int64) (int, error)
- func (b *Bot) SendWorkoutComplete(chatID, sessionID int64, completedExercises, totalExercises int) error
- func (b *Bot) SendWorkoutNotification(text string, sessionID int64) (int, error)
- func (b *Bot) SendWorkoutStaleNotification(text string, sessionID int64) (int, error)
- func (b *Bot) Start()
- func (b *Bot) StartWorkoutFlowFromWeb(sessionID int64) error
- func (b *Bot) UpdateWorkoutMessage(msgID int, text string) error
- func (b *Bot) Username() string
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
}
func (*Bot) DeleteMessage ¶
DeleteMessage deletes a message from the conversation
func (*Bot) SendBPReminderNotification ¶
SendBPReminderNotification sends a BP reminder notification with action buttons
func (*Bot) SendExerciseList ¶
SendExerciseList sends an inline keyboard with all available exercises for a user Uses pagination to avoid Telegram keyboard limits (max 100 buttons)
func (*Bot) SendExercisePrompt ¶
func (b *Bot) SendExercisePrompt(sessionID int64, exerciseID int64, exerciseName string, sets, repsMin int, repsMax *int, weightKg *float64) (int, error)
SendExercisePrompt sends a prompt for a specific exercise during workout
func (*Bot) SendGroupNotification ¶
func (*Bot) SendLowStockWarning ¶
SendLowStockWarning sends a low stock warning message to the user
func (*Bot) SendNotification ¶
func (*Bot) SendSimpleNotification ¶
func (b *Bot) SendSimpleNotification(text string, buttons []tgbotapi.InlineKeyboardButton) (int, error)
SendSimpleNotification sends a notification with custom buttons SendSimpleNotification sends a notification with custom buttons
func (*Bot) SendWeightReminderNotification ¶
SendWeightReminderNotification sends a weight reminder notification with action buttons
func (*Bot) SendWorkoutComplete ¶
func (b *Bot) SendWorkoutComplete(chatID, sessionID int64, completedExercises, totalExercises int) error
SendWorkoutComplete sends a completion message
func (*Bot) SendWorkoutNotification ¶
SendWorkoutNotification sends a workout notification with inline buttons
func (*Bot) SendWorkoutStaleNotification ¶
SendWorkoutStaleNotification sends a notification for a stale workout with Finish and Dismiss buttons
func (*Bot) StartWorkoutFlowFromWeb ¶ added in v0.1.17
StartWorkoutFlowFromWeb mirrors Telegram "Start" callback behavior when workout is started from web UI. It sends a confirmation message and exercise prompts with inline action buttons.
func (*Bot) UpdateWorkoutMessage ¶ added in v0.1.17
UpdateWorkoutMessage updates a workout notification message