even im having issue on telegram webhooks. notify works fine.
config
notify:
- name: telegram
platform: telegram
api_key: xxxx
chat_id: 54321
telegram_bot:
platform: webhooks
api_key : xxxxxx
allowed_chat_ids:
- 12345
2017-06-03 17:44:34 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "C:\Users\mohammed\AppData\Roaming\.homeassistant\deps\aiohttp\web_protocol.py", line 417, in start
resp = yield from self._request_handler(request)
File "C:\Users\mohammed\AppData\Roaming\.homeassistant\deps\aiohttp\web.py", line 289, in _handle
resp = yield from handler(request)
File "C:\Users\mohammed\AppData\Local\Programs\Python\Python35\lib\asyncio\coroutines.py", line 209, in coro
res = yield from res
File "C:\Users\mohammed\AppData\Local\Programs\Python\Python35\lib\asyncio\coroutines.py", line 209, in coro
res = yield from res
File "C:\Users\mohammed\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\http\ban.py", line 58, in ban_middleware_handler
return (yield from handler(request))
File "C:\Users\mohammed\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\http\__init__.py", line 424, in handle
result = yield from result
File "C:\Users\mohammed\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\telegram_bot\webhooks.py", line 86, in post
if not self.process_message(data):
File "C:\Users\mohammed\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\telegram_bot\__init__.py", line 515, in process_message
message_ok, event_data = self._get_message_data(data)
File "C:\Users\mohammed\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\components\telegram_bot\__init__.py", line 504, in _get_message_data
ATTR_FROM_LAST: msg_data['from']['last_name']
KeyError: 'last_name'