Queer European MD passionate about IT
Browse Source

Provide a `shared_data` attribute

Davte 5 years ago
parent
commit
709f230266
2 changed files with 6 additions and 2 deletions
  1. 5 2
      davtelepot/__init__.py
  2. 1 0
      davtelepot/bot.py

+ 5 - 2
davtelepot/__init__.py

@@ -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]

+ 1 - 0
davtelepot/bot.py

@@ -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(