TelegramChatStats
TelegramChatStats copied to clipboard
KeyError: 'from'
Hi, I've followed the instruction, but get the following error message, could you please point to possible solution?
importing raw data...
input data is a single chat export
calculating metrics...
Traceback (most recent call last):
File "telegram-statistics.py", line 267, in <module>
main()
File "telegram-statistics.py", line 209, in main
calculate_metrics(chat_data, date_filter)
File "telegram-statistics.py", line 137, in calculate_metrics
metrics = _message_numerics(chat_data, date_filter)
File "/work/_message_numerics.py", line 24, in _message_numerics
metrics["A"]["name"] = chat["messages"][1]["from"]
KeyError: 'from'
I'm having the identical issue.
What type of chat are you exporting @aleks648 and @danzerzine ? Is it from a group, or a bot? I just tested it with two different single chat exports and I cannot reproduce the problem.
What type of chat are you exporting @aleks648 and @danzerzine ? Is it from a group, or a bot? I just tested it with two different single chat exports and I cannot reproduce the problem.
"type": "public_supergroup",