Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not find command 'channel_list' #97

Open
narbehaj opened this issue Dec 22, 2017 · 11 comments
Open

can not find command 'channel_list' #97

narbehaj opened this issue Dec 22, 2017 · 11 comments

Comments

@narbehaj
Copy link

Hey there,

I cloned the latest changes from the repo and tried to run it but I got the error below:

I, [2017-12-22T12:42:45.815431 #10437] INFO -- : Attaching to telegram-cli control socket at localhost:9009 telegram-history-dump.rb:51:in exec_tg_command': Telegram command <channel_list> failed: {"result"=>"FAIL", "error_code"=>38, "error"=>"can not find command 'channel_list'"} (RuntimeError)
from telegram-history-dump.rb:335:in <main>'

I have been using exactly this method for past couple of months but this time it didn't work.
Any idea?

@vincentkwok
Copy link

vincentkwok commented Jan 6, 2018

channel_list it was -removed- not in v1.3.1 https://github.com/vysheng/tg/blob/1.3.1/interface.c#L1292

@narbehaj
Copy link
Author

narbehaj commented Jan 6, 2018

@vincentkwok ok thanks, what should I do now to export my conversations?

@vincentkwok
Copy link

the config is in master branch. Use master branch instead.

@narbehaj
Copy link
Author

narbehaj commented Jan 6, 2018

@vincentkwok The telegram-cli is already in the master branch. What do you mean? What config?

@vincentkwok
Copy link

do you clone & build telegram-cli from master branch? or it was in v.1.3.1 ?

@narbehaj
Copy link
Author

narbehaj commented Jan 6, 2018

@vincentkwok yes I did.

@vincentkwok
Copy link

telegram-history-dump tries to call channel_list command. It does NOT in telegram-cli v1.3.1 BUT in master branch. You have to build the telegram-cli binary yourself based on master branch steps below:

  1. clone https://github.com/vysheng/tg:master
  2. follow installation to build
  3. use built bin/telegram-cli to connect telegram
  4. ruby telegram-history-dump.rb

@narbehaj
Copy link
Author

narbehaj commented Jan 6, 2018

I did that, but same error :(

@vincentkwok
Copy link

vincentkwok commented Jan 7, 2018

Can't reproduce your case :(

@ghost
Copy link

ghost commented Jan 10, 2018

I had the same problem :/ My solution was as simple as reading the command i copied and pasted c a r e f u l l y

I had the command compied from my wiki which replaced the two dashes from the command line parameter --json into one long dash like –json.

So if your telegramcli output looks colorful (it should be plain json) you probably did the same mistake.

@narbehaj
Copy link
Author

@ChrisDeChef thanks for the note but my problem is not related to --json option. It relates to telegram-cli's new version which does not support channel_list command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants