PersistenceInput¶
- class telegram.ext.PersistenceInput(bot_data=True, chat_data=True, user_data=True, callback_data=True)[source]¶
Bases:
NamedTuple
Convenience wrapper to group boolean input for the
store_data
parameter forBasePersistence
.Available In
- 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
.