Provide a shared_data
attribute
This commit is contained in:
parent
87431b8596
commit
709f230266
@ -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]
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user