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 remove extension, no way to see video! #428

Open
eliafino opened this issue Feb 17, 2015 · 8 comments
Open

Send_video remove extension, no way to see video! #428

eliafino opened this issue Feb 17, 2015 · 8 comments

Comments

@eliafino
Copy link

Please, fix this bug.
When video sended, the receiver see file with no extension in attachment, no way to open this with media player.

Please, I need this function... please please...

@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.

@eliafino
Copy link
Author

eliafino commented Mar 4, 2015

Hi, thanks, and in older version (1.0.4) listen port working with this fix?
In 1.0.4 not present "port to listen for input commands"

@jonnywilliamson
Copy link
Contributor

@eliafino

Sorry I missed your question.

If you complied telegram using the above commits (a month or so old) you will get this version of telegram:

Telegram-cli version 1.1.1

With these options available:

telegram-cli Usage
  -u                  specify username (would not be asked during authorization)
  -k                  specify location of public key (possible multiple entries)
  -v                  increase verbosity (0-ERROR 1-WARNIN 2-NOTICE 3+-DEBUG-levels)
  -N                  message num mode
  -c                  config file name
  -p                  use specified profile
  -l                  log level
  -f                  during authorization fetch all messages since registration
  -E                  disable auto accept of encrypted chats
  -s                  lua script file
  -W                  send dialog_list query and wait for answer before reading input
  -C                  disable color output
  -R                  disable readline
  -d                  daemon mode
  -L <log-name>       log file name
  -U <user-name>      change uid after start
  -G <group-name>     change gid after start
  -D                  disable output
  -P <port>           port to listen for input commands
  -S <socket-name>    unix socket to create
  -e <commands>       make commands end exit
  -I                  use user and chat IDs in updates instead of names

@eliafino
Copy link
Author

@jonnywilliamson
thanks very much!
I try many times, but no luck...
... sorry, I'm not an expert of git

Please, if isn't too much, write step by step command to have telegram-cli with audio/video working...

Thanks

@jonnywilliamson
Copy link
Contributor

@eliafino No problem. This is what I did. No doubt someone will tell me there was a much quicker way, but so far this has been working really well.

Warning - I'm not sure if this bug (#440) will cause you problems registering, hopefully not. I had my numbers registered before this bug appeared and haven't had to register any more since.

Each line shown below is a new command i entered on my ubuntu machine.

mkdir /tmp
cd /tmp
git clone --recursive https://github.com/vysheng/tg.git && cd tg
git checkout 4630862924102ce508132296670c7c712bc65ee2
cd tgl/
git checkout 0205b668d3abcf35a348556776d1180439d115d9
cd ..
./configure
make
cd bin
./telegram-cli -k ../tg-server.pub

@eliafino
Copy link
Author

Thanks very much!
Il 13/mar/2015 22:14 "Jonathan" notifications@github.com ha scritto:

@eliafino https://github.com/eliafino No problem. This is what I did.
No doubt someone will tell me there was a much quicker way, but so far this
has been working really well.

Warning - I'm not sure if this bug (#440
#440) will cause you problems
registering, hopefully not. I had my numbers registered before this bug
appeared and haven't had to register any more since.

Each line shown below is a new command i entered on my ubuntu machine.

mkdir /tmp
cd /tmp
git clone --recursive https://github.com/vysheng/tg.git && cd tg
git checkout 4630862
cd tgl/
git checkout 0205b668d3abcf35a348556776d1180439d115d9
cd ..
./configure
make
cd bin
./telegram-cli -k ../tg-server.pub


Reply to this email directly or view it on GitHub
#428 (comment).

@eliafino
Copy link
Author

No luck,
when try to send a video:

SIGNAL received
h/tmp/tg/bin/telegram-cli(print_backtrace+0x20)[0x440bd0]
/tmp/tg/bin/telegram-cli(termination_signal_handler+0x64)[0x440c54]
/lib/x86_64-linux-gnu/libc.so.6(+0x35180)[0x7f22c3659180]
/tmp/tg/bin/telegram-cli[0x454863]
/tmp/tg/bin/telegram-cli(tglq_query_error+0x23f)[0x459cdf]
/tmp/tg/bin/telegram-cli[0x453e6e]
/tmp/tg/bin/telegram-cli[0x47a4eb]
/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5(event_base_loop+0x7fc)[0x7f22c4de03dc]
/tmp/tg/bin/telegram-cli(net_loop+0x7b)[0x441f4b]
/tmp/tg/bin/telegram-cli(main_loop+0x10)[0x4421a0]
/tmp/tg/bin/telegram-cli(loop+0x4a0)[0x4435b0]
/tmp/tg/bin/telegram-cli(main+0x277)[0x43f7a7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f22c3645b45]
/tmp/tg/bin/telegram-cli[0x43f878]

and crash...
Il 13/mar/2015 22:22 "Elia Finotti" elia.finotti@gmail.com ha scritto:

Thanks very much!
Il 13/mar/2015 22:14 "Jonathan" notifications@github.com ha scritto:

@eliafino https://github.com/eliafino No problem. This is what I did.
No doubt someone will tell me there was a much quicker way, but so far this
has been working really well.

Warning - I'm not sure if this bug (#440
#440) will cause you problems
registering, hopefully not. I had my numbers registered before this bug
appeared and haven't had to register any more since.

Each line shown below is a new command i entered on my ubuntu machine.

mkdir /tmp
cd /tmp
git clone --recursive https://github.com/vysheng/tg.git && cd tg
git checkout 4630862
cd tgl/
git checkout 0205b668d3abcf35a348556776d1180439d115d9
cd ..
./configure
make
cd bin
./telegram-cli -k ../tg-server.pub


Reply to this email directly or view it on GitHub
#428 (comment).

@jonnywilliamson
Copy link
Contributor

Did you make sure that your ~/.telegram-cli directory was removed/clean first before you tried all the above?

If you've had another version of the telegram-cli built before and you've run it, it will have created a folder called ./.telegram-cli in your home folder (notice the dot before the word telegram-cli). Just remove this and try running the newly build telegram binary again.

I can tell you for sure that sending a video is working on my build which I created using the above method.

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