Documentation ¶
Index ¶
- func Ask(c tele.Context) (bool, error)
- func BanMiddleware(next tele.HandlerFunc) tele.HandlerFunc
- func CallbackData(c tele.Context) error
- func Day(c tele.Context) error
- func DeleteMessage(c tele.Context) error
- func EmptyStrAsNil(str string) *string
- func ErrorHandler(err error, c tele.Context)
- func Escape(msg string) string
- func FormatDay(c tele.Context, day *api.Day, withGroups bool) []string
- func FormatDayShort(_ tele.Context, day *api.Day, _ bool) []string
- func GetDateRange(days int, offset int, startFromMonday bool) (time.Time, time.Time)
- func GetDayMarkup(c tele.Context, date string, messageIdsToDelete []string) *tele.ReplyMarkup
- func GetReplyKeyboard() [][]tele.ReplyButton
- func GetSchedule(c tele.Context, start time.Time, end time.Time, filter bool) ([]api.Day, error)
- func GetScheduleGroups(c tele.Context, schedule []api.Day, start time.Time, end time.Time)
- func GroupInRows(buttons []tele.Btn, perRow int) tele.ReplyMarkup
- func HandleText(c tele.Context) error
- func HelpMsg() string
- func Init(token string, database *sql.DB)
- func KeyboardMiddleware(next tele.HandlerFunc) tele.HandlerFunc
- func LogAction(c tele.Context)
- func LogError(err error, c tele.Context)
- func LogMiddleware(next tele.HandlerFunc) tele.HandlerFunc
- func MetricWriteMessage(metric *db.Metric, message *tele.Message)
- func MetricsMiddleware(next tele.HandlerFunc) tele.HandlerFunc
- func Next(c tele.Context) error
- func NextNext(c tele.Context) error
- func NextWeek(c tele.Context) error
- func SendSchedule(c tele.Context, message *tele.Message, withGroups bool, formatter Formatter, ...) error
- func SendScheduleWithOptions(c tele.Context, withGroups bool, formatter Formatter, days int, offset int, ...) error
- func SendSubject(c tele.Context, discipline string) error
- func SetCommands(b *tele.Bot)
- func SetData(c tele.Context) error
- func SetGroup(c tele.Context) error
- func Settings(c tele.Context) error
- func Short(c tele.Context) error
- func Start(c tele.Context) error
- func Subject(c tele.Context) error
- func UserMiddleware(next tele.HandlerFunc) tele.HandlerFunc
- func Week(c tele.Context) error
- type Command
- type Formatter
- type Keyboard
- type KeyboardButton
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BanMiddleware ¶
func BanMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func CallbackData ¶
func DeleteMessage ¶
func EmptyStrAsNil ¶
func ErrorHandler ¶
func GetDateRange ¶
func GetDayMarkup ¶
func GetReplyKeyboard ¶
func GetReplyKeyboard() [][]tele.ReplyButton
func GetSchedule ¶
func GetScheduleGroups ¶
func GroupInRows ¶
func GroupInRows(buttons []tele.Btn, perRow int) tele.ReplyMarkup
func HandleText ¶
func KeyboardMiddleware ¶
func KeyboardMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func LogMiddleware ¶
func LogMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func MetricsMiddleware ¶
func MetricsMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func SendSchedule ¶
func SendScheduleWithOptions ¶
func SetCommands ¶
func UserMiddleware ¶
func UserMiddleware(next tele.HandlerFunc) tele.HandlerFunc
Types ¶
type Command ¶
func GetCommands ¶
func GetCommands() []Command
Click to show internal directories.
Click to hide internal directories.