tvdstaaij / telegram-history-dump

Backup Telegram chat logs using telegram-cli
Other
664 stars 84 forks source link

unexpected token at 'ChannelName' #90

Closed Jimmm closed 6 years ago

Jimmm commented 6 years ago

The first run was OK, the second gives me this error:

ruby telegram-history-dump.rb I, [2017-10-15T00:29:21.021925 #37] INFO -- : Attaching to telegram-cli control socket at localhost:9009 /usr/lib/ruby/2.3.0/json/common.rb:156:in parse': 784: unexpected token at 'Channel Telegram Info Чат: 85 unread (JSON::ParserError) ' from /usr/lib/ruby/2.3.0/json/common.rb:156:inparse' from telegram-history-dump.rb:48:in exec_tg_command' from telegram-history-dump.rb:322:in

'

Jimmm commented 6 years ago

I used another telegram account, same problem.

ColVosch commented 6 years ago

starting telegram-cli with --json parameter fixed it for me. Hope this helps!

Jimmm commented 6 years ago

I love you! I saved all steps in a telegram chat and the messengers' formatting engine replaced --json with —json