You can see this line in help
of telegram-cli
.
view_photo <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
That says, you should enter msg-id
as an argument to view_photo
.
For knowing msg-id
of a message, you should use -N
or --enable-msg-id
arguments.
For example you should run telegram-cli
with this command:
telegram-cli --enable-msg-id
And you can see a number before your message. That number is your message id. For example:
12 [22:14] Lina »»» [image 32.webp: type=image/webp size=336x512 size=28KiB]
Here your msg-id
is 12, So for show that image you can use this command:
view_photo 12
But this is not really a photo, its Stickers of Telegram (Because of its .webp
format).
For see this type of image you can use imagemagick
with webp
package.
sudo apt install imagemagick webp
So you can use view_photo <msg-id>
command in telegram-cli, and then choose imagemagick
from applications list. That image should be shown.
1234 [22:14] Lina »»» [image 32.webp: type=image/webp size=336x512 size=28KiB]
, 1234 is your msg-id . And you can see this image withview_photo
and no need to goes to~/.telegram-cli/downloads
directory. – Ali Razmdideh Aug 31 '17 at 11:07