bot.check_user_status Module

This module contains functions for checking if users blocked the bot.

bot.check_user_status.check_users(context)

Checks for each member of the orchestra, if the bot can still access the user. If there are users, who blocked the bot, they are deleted from the orchestra and the admin is informed.

Parameters

context (CallbackContext) – The context as provided by the telegram.ext.Dispatcher.

Return type

None

bot.check_user_status.schedule_daily_job(dispatcher)

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

Parameters

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

Return type

None