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

channel_info command has no channel_description in results #64

Open
vhdmsm opened this Issue Feb 22, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@vhdmsm

vhdmsm commented Feb 22, 2016

Description part of channel_info is missed in results.
For example in telegram-cli:

> channel_info @elyas_hazrati
Channel [broadcast] کانال الیاس حضرتی @elyas_hazrati (#1002126178):
        about: -----------------------------------
فردا ، نباید اتفاق بیفتد ...
ما فردا را با انتخاب‌های‌مان می‌سازیم.
        2717 participants, 0 admins, 0 kicked

and in pytg:

{'peer_id': 1002126178, 'id': '$05000000623bbb3b2403f6a04c6bb4e5', 'title': 'کانال الیاس حضرتی', 'participants_count': 2717, 'flags': 65667, 'kicked_count': 0, 'print_name': 'کانال_الیاس_حضرتی', 'admins_count': 0, 'peer_type': 'channel'}
@luckydonald

This comment has been minimized.

Owner

luckydonald commented Feb 23, 2016

What output do you get if starting the CLI using the --json flag?
Is the information present there?

@luckydonald

This comment has been minimized.

Owner

luckydonald commented Feb 24, 2016

This relates to #63

@luckydonald

This comment has been minimized.

Owner

luckydonald commented Feb 24, 2016

Print vs. JSON

JSON
mac:tg-dev luckydonald$ bin/telegram-cli --json
> resolve_username xkcdchannel
{"id": "$05000000ad8b183ceafc88ecfe525ebe", "peer_type": "channel", "print_name": "xkcd", "peer_id": 1008241581, "flags": 65665, "admins_count": 0, "title": "xkcd", "kicked_count": 0, "participants_count": 0}
> channel_info @xkcdchannel
{"id": "$05000000ad8b183ceafc88ecfe525ebe", "peer_type": "channel", "print_name": "xkcd", "peer_id": 1008241581, "flags": 65667, "admins_count": 0, "title": "xkcd", "kicked_count": 0, "participants_count": 2435}
Print
mac:tg-dev luckydonald$ bin/telegram-cli

resolve_username xkcdchannel xkcd channel_info @xkcdchannel Channel [broadcast] xkcd @xkcdchannel (#1008241581): about: The latest xkcd comics when they come out! Comics are automatically posted by @xkcdchannelbot. Creator: @BotDevChannel 2434 participants, 0 admins, 0 kicked

@luckydonald

This comment has been minimized.

Owner

luckydonald commented Feb 24, 2016

That is an issue with the CLI not providing the needed informations.

@vhdmsm

This comment has been minimized.

vhdmsm commented Feb 24, 2016

And again cli! they're not in json results, so missed in cli. i'll try to fix this on cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment