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

send_video lost file extension #401

Open
pista86 opened this issue Jan 17, 2015 · 10 comments
Open

send_video lost file extension #401

pista86 opened this issue Jan 17, 2015 · 10 comments

Comments

@pista86
Copy link

pista86 commented Jan 17, 2015

When I run the following command:

send_video Marcelo_Pistarelli /bunny.mp4
36 [14:52] Marcelo Pistarelli <<< [video: type=video/mp4 size=100x100 duration=100 size=5MiB]

I get on my android phone but without the file extension mp4, then the telegram application recognizes it as a generic file without extension and not allow playback from the application.
Telegram: +54346909209

@ingria
Copy link

ingria commented Jan 28, 2015

I have the same issue using the send_document() function.

The file looks like this (no extension):
img_0515

Log entry is like that:

[17:17]  Admin <<< [document: type=application/octet-stream size=28KiB]

And the error is like this (webogram console):

Error: t.file_name is undefined

UPD:
How it should be:

[17:47]  Admin <<< [document Russian.xml: type=text/xml size=44KiB]

How it is:

[17:45]  Admin <<< [document: type=application/xml size=44KiB]

@kalehmann
Copy link

Same problem with send_audio.
On mobile clients, the file is unusual without the correct extension :-(

> send_audio peer file.ogg
[15:36] peer <<< [audio: type=audio/ogg duration=100 size=9KiB]

@eliafino
Copy link

Me too for sending video...
... please, fix ^_^

[video: type=video/x-msvideo size=100x100 duration=100 size=708KiB]

But video is 1280x720 and duration 10sec

@kalehmann
Copy link

I've found a workaround: using an older version of tg.
Now I use https://github.com/vysheng/tg/archive/1.0.4.zip and sending audio, photo and video works fine.

@eliafino
Copy link

Thanks kalemann,
but in 1.0.4 not present "port to listen for input commands"

@eliafino
Copy link

please fix :-(

@jonnywilliamson
Copy link
Contributor

Yes the same thing is happening if you send a jpg image with send_document.

The recipient gets a thumbnail of the jpg, but when they try and open it, it shows "file" with no file extension and you can't see the image.

Sending the same image via send_photo works fine.

Also, a gif file appears to work, but not a jpg. What a shame.

@terany
Copy link

terany commented Mar 3, 2015

One more vote for the fix

@jonnywilliamson
Copy link
Contributor

If you are interested in a work around, you can use a slightly older version of the code.

Checkout this commit for the tg repository

4630862

And this commit in the tgl repository:
vysheng/tgl@0205b66

do a ./configure and a make and it's back working again.

@MartinzSmitt
Copy link

I have too issue using the send_document() function.
img
Please, fix it

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

7 participants