Documentation ¶
Index ¶
- Variables
- func AddNewExercise(userID int64, repsName string) error
- func AddUser(userID int64, userName string) error
- func ClearTodayProgress(userID int64, repsName string) error
- func ClearTodayProgressAll(userID int64) error
- func GetRepsID(userID int64, repsName string) int
- func GetTodaysAmount(userID int64, repsName string) int
- func GetUserDate(userID int64) string
- func GetUserName(userID int64) string
- func IfButton(userID int64, textToCheck string) bool
- func Increment(userID int64, reps int, repsName string) (int, error)
- func UserExists(userID int64) bool
- func UserKeyboard(userID int64) tgbotapi.ReplyKeyboardMarkup
- func UserRepsAmount(userID int64, repsName string) (int, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddNewExercise ¶
func ClearTodayProgress ¶
func ClearTodayProgressAll ¶
func GetTodaysAmount ¶
func GetUserDate ¶
func GetUserName ¶
func IfButton ¶
IfButton checks if the message of user is one of the buttons or not. If not, false will be returned
func UserExists ¶
func UserKeyboard ¶
func UserKeyboard(userID int64) tgbotapi.ReplyKeyboardMarkup
UserKeyboard generates the telegram keyboard according to exercises he has added. Also there are default buttons
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.