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 the telegram.ext.Dispatcher.

Return type

None

bot.backup.schedule_daily_job(dispatcher)

Schedules a job running daily at 2AM which runs back_up().

Parameters

dispatcher (Dispatcher) – The telegram.ext.Dispatcher.

Return type

None