JunaidBabu / tdlib-python

Python wrapper for Telegram tdlib
17 stars 5 forks source link

Self bot? #2

Closed arisawali2014 closed 5 years ago

arisawali2014 commented 6 years ago

Can i use my own telegram account to became a bot?

JunaidBabu commented 6 years ago

Yes, execute the login.py to login to your normal account

arisawali2014 commented 6 years ago

I tried to execute the login.py but it got an error:

python3 login.py Traceback (most recent call last): File "/data/data/com.termux/files/home/tdlib-python/generic.py", line 12, in tdjson = CDLL("lib/tdjson32.dll") File "/data/data/com.termux/files/usr/lib/python3.6/ctypes/init.py", line 348, in init self._handle = _dlopen(self._name, mode) OSError: dlopen failed: "/data/data/com.termux/files/home/tdlib-python/lib/tdjson32.dll" has bad ELF magic

During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "login.py", line 3, in from generic import * File "/data/data/com.termux/files/home/tdlib-python/generic.py", line 14, in CDLL("lib/zlibd1.dll") File "/data/data/com.termux/files/usr/lib/python3.6/ctypes/init.py", line 348, in init self._handle = _dlopen(self._name, mode) OSError: dlopen failed: "/data/data/com.termux/files/home/tdlib-python/lib/zlibd1.dll" has bad ELF magic ➜ tdlib-python git:(master) ✗

JunaidBabu commented 6 years ago

Which operating system/arch is it?

arisawali2014 commented 6 years ago

I'm using termux on android for running the py

JunaidBabu commented 6 years ago

oh, I'm sorry the libs are not compiled for arm. You will have to use an x86 or x86_64 system as of now.