bot.backup Module¶
This module contains functions for backing up the pickle files.
- bot.backup.back_up(context)¶
Flushes the data to pickle file and uploads them to the OwnCloud/NextCloud instance as specified in the config file.
- Parameters
context (
CallbackContext
) – The context as provided by thetelegram.ext.Dispatcher
.- Return type
- bot.backup.schedule_daily_job(dispatcher)¶
Schedules a job running daily at 2AM which runs
back_up()
.- Parameters
dispatcher (
Dispatcher
) – Thetelegram.ext.Dispatcher
.- Return type