Queer European MD passionate about IT
Browse Source

Patch for custombot

Davte 5 years ago
parent
commit
5fb28a5c7a
2 changed files with 3 additions and 1 deletions
  1. 1 1
      davtelepot/__init__.py
  2. 2 0
      davtelepot/custombot.py

+ 1 - 1
davtelepot/__init__.py

@@ -14,7 +14,7 @@ __author__ = "Davide Testa"
 __email__ = "davide@davte.it"
 __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
 __license__ = "GNU General Public License v3.0"
-__version__ = "2.2.2"
+__version__ = "2.2.3"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 2 - 0
davtelepot/custombot.py

@@ -78,6 +78,8 @@ class Bot(davtelepot.bot.Bot):
             database_url=db_name,
             **kwargs
         )
+        self.messages['commands'] = dict()
+        self.messages['reply_keyboard_buttons'] = dict()
         self.message_handlers['pinned_message'] = self.handle_pinned_message
         self.message_handlers['photo'] = self.handle_photo_message
         self.message_handlers['location'] = self.handle_location