Documentation ¶
Index ¶
- func Ask(c tele.Context) (bool, error)
- func CallbackData(c tele.Context) error
- func Day(c tele.Context) error
- func EmptyStrAsNil(str string) *string
- func ErrorHanler(err error, c tele.Context)
- func Escape(msg string) string
- func FormatDay(c tele.Context, day *api.Day) string
- func FormatDayShort(c tele.Context, day *api.Day) string
- func GetDateRange(days int, offset int, startFromMonday bool) (time.Time, time.Time)
- func GetDayMarkup(c tele.Context, date string) *tele.ReplyMarkup
- func GetMarkup(c tele.Context, markup *tele.ReplyMarkup) *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 Next(c tele.Context) error
- func NextNext(c tele.Context) error
- func NextWeek(c tele.Context) error
- func SendSchedule(c tele.Context, withGroups bool, ...) 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 Keyboard
- type KeyboardButton
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallbackData ¶
func EmptyStrAsNil ¶
func ErrorHanler ¶
func GetDateRange ¶
func GetDayMarkup ¶
func GetDayMarkup(c tele.Context, date string) *tele.ReplyMarkup
func GetMarkup ¶
func GetMarkup(c tele.Context, markup *tele.ReplyMarkup) *tele.ReplyMarkup
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 SendSchedule ¶
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.