Teletun icon indicating copy to clipboard operation
Teletun copied to clipboard

Pair issue

Open ghost opened this issue 6 years ago • 2 comments

When i select the contact i have this messege: Connected! Sending Invitation! Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "teletun.py", line 83, in main_loop_starter receiver.message(main_loop()) File "/usr/local/lib/python2.7/dist-packages/pytg/utils.py", line 29, in start cr = func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/pytg/receiver.py", line 212, in message function.send(message) File "teletun.py", line 101, in main_loop data = base64.b64decode(msg.text) File "/usr/lib/python2.7/base64.py", line 78, in b64decode raise TypeError(msg) TypeError: Incorrect padding

I was try in Ubuntu 16.04.4 LTS and Debian 9.4. I want to use this code because in my plan i have unlimited Telegram :D

ghost avatar Apr 12 '18 21:04 ghost

Just comment line 128 sender.msg(username, unicode('Hello, I would like to establish a Layer 3 Tunnel with you! -teletun')). One side tries to decode it as base64 and therefore raises the exception.

DopeforHope avatar Dec 01 '19 22:12 DopeforHope

Close the issue

cofob avatar Oct 18 '20 12:10 cofob