Vielen Dank für dieses Plugin. Von NMA hierher geswitched...
Zwei Sachen:
/info führt zu
Gibt es eine einfache Möglichkeit, aus einer Logik heraus eine Nachricht zu schicken, ohne dafür extra ein Item zu setzen?
Merci
Zwei Sachen:
/info führt zu
Code:
2018-06-26 22:42:53 DEBUG dispatcher dispatcher Processing Update: {'message': {'chat': {'first_name': 'Matthias', 'type': 'private', 'id': 561486019}, 'date': 1530045773, 'new_chat_members': [], 'message_id': 36, 'photo': [], 'text': '/info', 'channel_chat_created': False, 'group_chat_created': False, 'from': {'language_code': 'de', 'id': 561486019, 'first_name': 'Matthias', 'is_bot': False}, 'supergroup_chat_created': False, 'new_chat_photo': [], 'delete_chat_photo': False, 'entities': [{'offset': 0, 'length': 5, 'type': 'bot_command'}], 'caption_entities': []}, 'update_id': 237300703} -- dispatcher.py:start:227 2018-06-26 22:42:53 ERROR dispatcher dispatcher An uncaught error was raised while processing the update -- dispatcher.py:process_update:301 Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/telegram/ext/dispatcher.py", line 279, in process_update handler.handle_update(update, self) File "/usr/local/lib/python3.5/dist-packages/telegram/ext/commandhandler.py", line 173, in handle_update return self.callback(dispatcher.bot, update, **optional_args) File "/usr/local/smarthome/plugins/telegram/__init__.py", line 281, in cHandler_info bot.send_message(chat_id=update.message.chat_id, text=self.translate("Infos from the items:"), reply_markup={"keyboard":self.create_info_reply_markup()}) AttributeError: 'Telegram' object has no attribute 'translate'
Merci
Kommentar