Documentation
¶
Index ¶
- Constants
- func AskCourse(c tele.Context) error
- func AskFaculty(c tele.Context) error
- func AskForm(c tele.Context) error
- func AskGroup(c tele.Context) error
- func BanMiddleware(next tele.HandlerFunc) tele.HandlerFunc
- func CallbackDataHandler(c tele.Context) error
- func DayHandler(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(keyboardIndex int) [][]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 GetTeacherDayMarkup(c tele.Context, employee string, date string, messageIdsToDelete []string) *tele.ReplyMarkup
- func GroupInRows(buttons []tele.Btn, perRow int) []tele.Row
- 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 MainHandler(c tele.Context) error
- func MetricWriteMessage(metric *db.Metric, message *tele.Message)
- func MetricsMiddleware(next tele.HandlerFunc) tele.HandlerFunc
- func NextHandler(c tele.Context) error
- func NextNextHandler(c tele.Context) error
- func NextWeekHandler(c tele.Context) error
- func OtherHandler(c tele.Context) error
- func SearchGroupHandler(c tele.Context) error
- func SearchTeacherHandler(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 SetSearchTeacherHandler(c tele.Context) error
- func SettingsHandler(c tele.Context) error
- func ShortHandler(c tele.Context) error
- func StartHandler(c tele.Context) error
- func SubjectHandler(c tele.Context) error
- func TextHandler(c tele.Context) error
- func UserMiddleware(next tele.HandlerFunc) tele.HandlerFunc
- func WeekHandler(c tele.Context) error
- type Command
- type Formatter
- type Keyboard
- type KeyboardButton
Constants ¶
View Source
const ( KeyboardMain = iota KeyboardOther )
Variables ¶
This section is empty.
Functions ¶
func AskFaculty ¶
func BanMiddleware ¶
func BanMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func CallbackDataHandler ¶
func DayHandler ¶
func DeleteMessage ¶
func EmptyStrAsNil ¶
func ErrorHandler ¶
func GetDateRange ¶
func GetDayMarkup ¶
func GetReplyKeyboard ¶
func GetReplyKeyboard(keyboardIndex int) [][]tele.ReplyButton
func GetSchedule ¶
func GetScheduleGroups ¶
func GetTeacherDayMarkup ¶
func KeyboardMiddleware ¶
func KeyboardMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func LogMiddleware ¶
func LogMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func MainHandler ¶
func MetricsMiddleware ¶
func MetricsMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func NextHandler ¶
func NextNextHandler ¶
func NextWeekHandler ¶
func OtherHandler ¶
func SearchGroupHandler ¶
func SearchTeacherHandler ¶
func SendSchedule ¶
func SendScheduleWithOptions ¶
func SetSearchTeacherHandler ¶
func SettingsHandler ¶
func ShortHandler ¶
func StartHandler ¶
func SubjectHandler ¶
func TextHandler ¶
func UserMiddleware ¶
func UserMiddleware(next tele.HandlerFunc) tele.HandlerFunc
func WeekHandler ¶
Types ¶
type Command ¶
func GetCommands ¶
func GetCommands() []Command
Click to show internal directories.
Click to hide internal directories.