You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off I wanna say what you've written is pretty damn cool. Also please be gentle as I'm a Linux user but not a coder. I have a proper full Linux machine at home I plan on trying this on but here at work I have WSL. More info on WSL here: https://docs.microsoft.com/en-us/windows/wsl/install-win10
So ran through all the steps, pretty smoothly. I did end up with telegram-cli in my user dir. No problem. It runs fine from there without root, I copied the conf file to my home dir, and modified it. ASt the moment I basically have all the top options disabled. Notifications, images, etc to make it as compatible as possible.
I tried to run it and for the errors below. I eventually closed out of WSL, closing all it's windows. I tried to launch it again and it worked! I managed to send a message to a friend. I verified it worked and see the sent message on my phone's Telegram client. I used the arrows and moved over to the Telegram "friend" just to see the verification message, and it crashed again. BTW WSL uses Ubuntu.
It may be that this just can't work reliably or barely at all with WSL. It seems like it's some kind of connectivity issue in WSL, maybe a ipchains/firewall thing? Not sure. Anyway you may not bew interested in fixing something like this. Or it may not be your code at all it could easily be my setup. But I thought I would send it your way. Cheers and thanks.
`$ nctelegram
Exception in thread Receiver (pytg):
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.5/dist-packages/pytg/receiver.py", line 125, in _receiver
raise ConnectionError("Remote end closed.")
pytg.exceptions.ConnectionError: Remote end closed.
Traceback (most recent call last):
File "/usr/local/bin/nctelegram", line 93, in
ncTelegram.Telegram_ui(config_full)
File "/usr/local/lib/python3.5/dist-packages/ncTelegram/init.py", line 73, in init
self.msg_widget = MessageWidget(self)
File "/usr/local/lib/python3.5/dist-packages/ncTelegram/ui_msgwidget.py", line 25, in init
self.get_history()
File "/usr/local/lib/python3.5/dist-packages/ncTelegram/ui_msgwidget.py", line 60, in get_history
self.print_msg(msg)
File "/usr/local/lib/python3.5/dist-packages/ncTelegram/ui_msgwidget.py", line 141, in print_msg
msg_reply = self.Telegram_ui.sender.message_get(msg['reply_id'])
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 630, in command_alias
return self.execute_function(command_name, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 320, in execute_function
result = self._do_send(request, answer_timeout=self.default_answer_timeout, retry_connect=retry_connect)
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 507, in _do_send
raise ConnectionError("Remote end closed")
pytg.exceptions.ConnectionError: Remote end closed`
The text was updated successfully, but these errors were encountered:
First off I wanna say what you've written is pretty damn cool. Also please be gentle as I'm a Linux user but not a coder. I have a proper full Linux machine at home I plan on trying this on but here at work I have WSL. More info on WSL here: https://docs.microsoft.com/en-us/windows/wsl/install-win10
So ran through all the steps, pretty smoothly. I did end up with telegram-cli in my user dir. No problem. It runs fine from there without root, I copied the conf file to my home dir, and modified it. ASt the moment I basically have all the top options disabled. Notifications, images, etc to make it as compatible as possible.
I tried to run it and for the errors below. I eventually closed out of WSL, closing all it's windows. I tried to launch it again and it worked! I managed to send a message to a friend. I verified it worked and see the sent message on my phone's Telegram client. I used the arrows and moved over to the Telegram "friend" just to see the verification message, and it crashed again. BTW WSL uses Ubuntu.
It may be that this just can't work reliably or barely at all with WSL. It seems like it's some kind of connectivity issue in WSL, maybe a ipchains/firewall thing? Not sure. Anyway you may not bew interested in fixing something like this. Or it may not be your code at all it could easily be my setup. But I thought I would send it your way. Cheers and thanks.
`$ nctelegram
Exception in thread Receiver (pytg):
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.5/dist-packages/pytg/receiver.py", line 125, in _receiver
raise ConnectionError("Remote end closed.")
pytg.exceptions.ConnectionError: Remote end closed.
Traceback (most recent call last):
File "/usr/local/bin/nctelegram", line 93, in
ncTelegram.Telegram_ui(config_full)
File "/usr/local/lib/python3.5/dist-packages/ncTelegram/init.py", line 73, in init
self.msg_widget = MessageWidget(self)
File "/usr/local/lib/python3.5/dist-packages/ncTelegram/ui_msgwidget.py", line 25, in init
self.get_history()
File "/usr/local/lib/python3.5/dist-packages/ncTelegram/ui_msgwidget.py", line 60, in get_history
self.print_msg(msg)
File "/usr/local/lib/python3.5/dist-packages/ncTelegram/ui_msgwidget.py", line 141, in print_msg
msg_reply = self.Telegram_ui.sender.message_get(msg['reply_id'])
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 630, in command_alias
return self.execute_function(command_name, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 320, in execute_function
result = self._do_send(request, answer_timeout=self.default_answer_timeout, retry_connect=retry_connect)
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 507, in _do_send
raise ConnectionError("Remote end closed")
pytg.exceptions.ConnectionError: Remote end closed`
The text was updated successfully, but these errors were encountered: