Module package
Subpackages
- Commands package
- Data package
- Description
- db_manager
- easter_egg
- exam
- professor
- scrapable
- timetable_slot
TimetableSlotTimetableSlot.IDTimetableSlot.nomeTimetableSlot.giornoTimetableSlot.ora_inizioTimetableSlot.ora_fineTimetableSlot.aulaTimetableSlot.columnsTimetableSlot.end_hourTimetableSlot.find()TimetableSlot.find_all()TimetableSlot.get_last_day()TimetableSlot.is_still_to_comeTimetableSlot.scrape()TimetableSlot.table
- Debug package
- Utils package
Description
Modules
callback_handlers
Common query callback families
- module.callback_handlers.exit_handler(update, context)
Called when the user wants to close a sub-menu. Removes the message from the user’s chat
- Parameters:
update (
Update) – update eventcontext (
CallbackContext) – context passed by the handler
- Return type:
None
- module.callback_handlers.informative_callback(update, context)
Called by any command that needs to show information to the user
- Parameters:
update (
Update) – update eventcontext (
CallbackContext) – context passed by the handler
- Return type:
None
- module.callback_handlers.localization_handler(update, context)
Called by any query that needs to show a localized text to the user
- Parameters:
update (
Update) – update eventcontext (
CallbackContext) – context passed by the handler
- Return type:
None
- module.callback_handlers.md_handler(update, context)
Called by any query that needs to show the contents of a markdown file to the user
- Parameters:
update (
Update) – update eventcontext (
CallbackContext) – context passed by the handler
- Return type:
None
- module.callback_handlers.none_handler(update, _)
Called when the user clicks an unactive button. Stops the spinning circle
- Parameters:
update (
Update) – update eventcontext – context passed by the handler
- Return type:
None
Called by sm_.* callbacks. Opens the requested sub-menu, usually by editing the message and adding an InlineKeyboard
- Parameters:
update (
Update) – update eventcontext (
CallbackContext) – context passed by the handler
- Return type:
None
easter_egg_func
Nobody knows what those functions do
- module.easter_egg_func.bladrim(update, context)
- module.easter_egg_func.lei_che_ne_pensa_signorina(update, context)
- module.easter_egg_func.prof_sticker(update, context)
- module.easter_egg_func.prof_sticker_id()
- Return type:
str
- module.easter_egg_func.santino(update, context)
- module.easter_egg_func.smonta_portoni(update, context)
- module.easter_egg_func.uni_bandita(update, context)
job_updater
Job updater
- module.job_updater.check_exam_reminders(context)
Job function to check for exams 14 days and 4 days from now and send reminder.
- Return type:
None
- module.job_updater.updater_lep(_)
Called with a set frequence. Updates all the scrapables
- Parameters:
context – context passed by the handler