GithubHelp home page GithubHelp logo

svtcore / telegram-referral-bot Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 39.0 66 KB

Invite Telegram accounts as referrals to bots, using your referral code

License: MIT License

Python 100.00%
telegram telegram-bot referral referrals bot pyrogram pyrogram-bot airdrop airdrop-automation invite

telegram-referral-bot's People

Contributors

svtcore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

telegram-referral-bot's Issues

Not working

Hi man its not worked at all always show me error please if can help me my telegram is @Lobersy
Please i need it

Help

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

Help

Hi can you do a detailed video on how to do this.

How to fix this error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.