Skip to content

Commit

Permalink
fix telegram client
Browse files Browse the repository at this point in the history
  • Loading branch information
p-rdx committed Apr 2, 2020
1 parent ce1d8fe commit 8e97a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeppavlov_agent/core/telegram_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def handle_message(self, message):
date_time=message.date, location='', channel_type='telegram',
require_response=True
)
await message.answer(response['dialog']['utterances'][-1]['text'])
await message.answer(response['dialog'].utterances[-1].text)


def run_tg(token, proxy, agent):
Expand Down

0 comments on commit 8e97a3a

Please sign in to comment.