Git Product home page Git Product logo

Comments (14)

herofahad777 avatar herofahad777 commented on August 29, 2024

Does this work on windows because i am doing on windows 10

from telegram-referral-bot.

svtcore avatar svtcore commented on August 29, 2024

Hi, yes it works on windows too, please provide steps which you are doing and I will try help you to solve this problem.

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

Can you specify the which steps and can we have discord DM that will be good in explaining what's the problem
Discord ID:- herofahad777

from telegram-referral-bot.

svtcore avatar svtcore commented on August 29, 2024

Can you specify the which steps and can we have discord DM that will be good in explaining what's the problem Discord ID:- herofahad777

How to manage script described here make sure you are doing same. If you got an error one of these steps then send it below

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

Can you specify the which steps and can we have discord DM that will be good in explaining what's the problem Discord ID:- herofahad777

How to manage script described here make sure you are doing same. If you got an error one of these steps then send it below

Ok will send the first error after redoing the setup again

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

OK so after redoing the setup the same error came
At step 6
I did no changes in og code
This is the error
PS D:\TRB\telegram-referral-bot> python bot.py --auth --tokens accounts.txt
Traceback (most recent call last):
File "D:\TRB\telegram-referral-bot\bot.py", line 33, in
auth.start()
File "D:\TRB\telegram-referral-bot\classes\auth.py", line 38, in start
self.app.start()
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\sync.py", line 66, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\anaconda3\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\methods\utilities\start.py", line 58, in start
is_authorized = await self.connect()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\methods\auth\connect.py", line 47, in connect
await self.session.start()
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\session\session.py", line 149, in start
raise e
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\session\session.py", line 120, in start
await self.send(
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\session\session.py", line 318, in send
message = self.msg_factory(data)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\session\internals\msg_factory.py", line 37, in call
len(body)
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\raw\core\tl_object.py", line 79, in len
return len(self.write())
^^^^^^^^^^^^
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\raw\functions\invoke_with_layer.py", line 78, in write
b.write(self.query.write())
^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\raw\functions\init_connection.py", line 128, in write
b.write(Int(self.api_id))
^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\anaconda3\Lib\site-packages\pyrogram\raw\core\primitives\int.py", line 33, in new
return value.to_bytes(cls.SIZE, "little", signed=signed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OverflowError: int too big to convert
I have a video of the setup here
https://drive.google.com/file/d/1z03hBiCvZOtTMvrmfiyLYjWwkxJhKfrX/view?usp=sharing

from telegram-referral-bot.

svtcore avatar svtcore commented on August 29, 2024

Thanks for sharing video it's more understandable.

  1. In your case you configured .env file wrong
    Correct config looks like this
BOT_NAME=PAMALOGBOT
COUNT=1
REFER_ID=r07595517216
CHANNEL_NAME=related_with_bot_channel_name
DELAY_MIN = 10
DELAY_MAX = 15

You are using refer link, instead of refer ID (it's r07595517216)

  1. You are using your own bot credentials instead of account credentials. It can be obtained from here: https://my.telegram.org/ (DO NOT share this data).
    This means that if you have, for example, 5 Telegram accounts (not bots), you could invite them using their API_ID and API_HASH.

example fake data

account_1:8121234:e11e86942950ea8e13bbc932376b378f

I have tried inviting myself and confirmed that it works
result

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

Thanks for sharing video it's more understandable.

  1. In your case you configured .env file wrong
    Correct config looks like this
BOT_NAME=PAMALOGBOT
COUNT=1
REFER_ID=r07595517216
CHANNEL_NAME=related_with_bot_channel_name
DELAY_MIN = 10
DELAY_MAX = 15

You are using refer link, instead of refer ID (it's r07595517216)

  1. You are using your own bot credentials instead of account credentials. It can be obtained from here: https://my.telegram.org/ (DO NOT share this data).
    This means that if you have, for example, 5 Telegram accounts (not bots), you could invite them using their API_ID and API_HASH.

example fake data

account_1:8121234:e11e86942950ea8e13bbc932376b378f

I have tried inviting myself and confirmed that it works
result

Ok so this program doesn't uses bot as referral users.
Like I want all my bots to join a referral link and not real account

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

The same error is still coming when i checked after doing the changes
check out the error output below
error.txt

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

So in the accounts txt file should I paste the bot API id:API hash or the users

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

So in the accounts txt file should I paste the bot API id:API hash or the users

Waiting for your reply.

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

Still waiting

from telegram-referral-bot.

svtcore avatar svtcore commented on August 29, 2024

So in the accounts txt file should I paste the bot API id:API hash or the users

API ID and API HASH of accounts which will be used. It could be obtained from my.telegram.org

from telegram-referral-bot.

herofahad777 avatar herofahad777 commented on August 29, 2024

So in the accounts txt file should I paste the bot API id:API hash or the users

API ID and API HASH of accounts which will be used. It could be obtained from my.telegram.org

So I can use bots as refferal does it count

from telegram-referral-bot.

Related Issues (11)

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.