telegram.ext.PersistenceInput#
- class telegram.ext.PersistenceInput(bot_data=True, chat_data=True, user_data=True, callback_data=True)[source]#
Bases:
tupleConvenience wrapper to group boolean input for
BasePersistence.- Parameters
bot_data (
bool, optional) – Whether the setting should be applied forbot_data. Defaults toTrue.chat_data (
bool, optional) – Whether the setting should be applied forchat_data. Defaults toTrue.user_data (
bool, optional) – Whether the setting should be applied foruser_data. Defaults toTrue.callback_data (
bool, optional) – Whether the setting should be applied forcallback_data. Defaults toTrue.