telegramlib.new_daily_job_from_args

telegramlib.new_daily_job_from_args(function, reset=False)[source]

Schedules a new user’s daily job from Telegram command argument with hh:mm format.

Parameters:
  • function (Callable) – Scheduled function of daily job.

  • reset (bool, optional) – True to remove all previously scheduled daily jobs of the user (defalut is False).

Returns:

Successful or unsuccessful message: ‘job created’, ‘wrong args’ or ‘empty args’.

Return type:

str