svtcore / telegram-referral-bot Goto Github PK
View Code? Open in Web Editor NEWInvite Telegram accounts as referrals to bots, using your referral code
License: MIT License
Invite Telegram accounts as referrals to bots, using your referral code
License: MIT License
Hi man its not worked at all always show me error please if can help me my telegram is @Lobersy
Please i need it
I'm on Termux and when I run bot.py, i get this error :
Traceback (most recent call last):
File "/data/data/com.termux/files/home/telegram-referral-bot/bot.py", line 22, in
auth.start()
File "/data/data/com.termux/files/home/telegram-referral-bot/classes/auth.py", line 30, in start
self.app.start()
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pyrogram/sync.py", line 66, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pyrogram/methods/utilities/start.py", line 58, in start
is_authorized = await self.connect()
^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pyrogram/methods/auth/connect.py", line 40, in connect
await self.load_session()
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pyrogram/client.py", line 616, in load_session
await self.storage.open()
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pyrogram/storage/file_storage.py", line 58, in open
self.conn = sqlite3.connect(str(path), timeout=1, check_same_thread=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: unable to open database file
Hi can you do a detailed video on how to do this.
In tl_object.py in line 34
This is the code
def read(cls, b: BytesIO, *args: Any) -> Any:
return cast(TLObject, objects[int.from_bytes(b.read(8), "little")]).read(b, *args)
I have changed the number 8 from 4 and to 16 but the same error is going on what to do, I am not very experienced in python
This is the error
"D:\Py Interpreter\Scripts\python.exe" bot.py --auth --tokens accounts.txt
Traceback (most recent call last):
File "D:\TRB\telegram-referral-bot-main\bot.py", line 33, in
auth.start()
File "D:\TRB\telegram-referral-bot-main\classes\auth.py", line 38, in start
self.app.start()
File "D:\Py Interpreter\Lib\site-packages\pyrogram\sync.py", line 66, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 664, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\Py Interpreter\Lib\site-packages\pyrogram\methods\utilities\start.py", line 58, in start
is_authorized = await self.connect()
^^^^^^^^^^^^^^^^^^^^
File "D:\Py Interpreter\Lib\site-packages\pyrogram\methods\auth\connect.py", line 40, in connect
await self.load_session()
File "D:\Py Interpreter\Lib\site-packages\pyrogram\client.py", line 637, in load_session
await Auth(
File "D:\Py Interpreter\Lib\site-packages\pyrogram\session\auth.py", line 274, in create
raise e
File "D:\Py Interpreter\Lib\site-packages\pyrogram\session\auth.py", line 89, in create
res_pq = await self.invoke(raw.functions.ReqPqMulti(nonce=nonce))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Py Interpreter\Lib\site-packages\pyrogram\session\auth.py", line 67, in invoke
return self.unpack(response)
^^^^^^^^^^^^^^^^^^^^^
File "D:\Py Interpreter\Lib\site-packages\pyrogram\session\auth.py", line 60, in unpack
return TLObject.read(b)
^^^^^^^^^^^^^^^^
File "D:\Py Interpreter\Lib\site-packages\pyrogram\raw\core\tl_object.py", line 34, in read
return cast(TLObject, objects[int.from_bytes(b.read(8), "little")]).read(b, *args)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 0
Process finished with exit code 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.