Provide a shared_data attribute

This commit is contained in:
Davte 2020-02-10 15:54:34 +01:00
parent 87431b8596
commit 709f230266
2 changed files with 6 additions and 2 deletions

View File

@ -14,9 +14,12 @@ __author__ = "Davide Testa"
__email__ = "davide@davte.it"
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
__license__ = "GNU General Public License v3.0"
__version__ = "2.3.20"
__version__ = "2.3.21"
__maintainer__ = "Davide Testa"
__contact__ = "t.me/davte"
# Legacy module; please use `from davtelepot.bot import Bot` from now on
from davtelepot.custombot import Bot
from .custombot import Bot
from . import bot, utilities
__all__ = [Bot, bot, utilities]

View File

@ -218,6 +218,7 @@ class Bot(TelegramBot, ObjectWithDatabase, MultiLanguageObject):
self._log_file_name = None
self._errors_file_name = None
self.placeholder_requests = dict()
self.shared_data = dict()
# Add `users` table with its fields if missing
self.db['users'].upsert(
dict(