svtcore / telegram-referral-bot

Invite Telegram accounts as referrals to bots, using your referral code
MIT License
51 stars 51 forks source link

not working #13

Closed trapnerdd closed 6 days ago

trapnerdd commented 6 days ago

Hey bro, i just found your project and tried to get a referral on @hamster_kombat_bot and it didnt worked. I recieved a message: '''... has sent start command to the bot @hamster_kombat_bot Sent 1/1 Done''' but the number of my referrals are still the same. Does this script actually launch the app or its just sending '/start' message? Btw, i faced another problem when i tried to use proxy with authentication:

'''proxy_type=getattr(socks, proxy.get("scheme").upper()), ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'upper''''

I just added 'scheme=str('socks5')' in 'proxy=dict(hostname=ip..' in main.py and auth.py and it worked(hope it will help others who will face this problem)

And I want to say that I really appreciate your work and that you shared your code here with detailed description(so that even as stupid as I could figure everything out), thanks a lot for that and good luck in all your beginnings

svtcore commented 6 days ago

Hi, thanks for the feedback. The script had been developed before Telegram started using an external window for bots, so basically it uses the /start command with a special code (referral) and doesn't support an external window. In your case, it seems the bot requires the app to be run to count the referral I will fix the issue with proxies soon. Thanks for your contribution

trapnerdd commented 5 days ago

Hi, thanks for the feedback. The script had been developed before Telegram started using an external window for bots, so basically it uses the /start command with a special code (referral) and doesn't support an external window. In your case, it seems the bot requires the app to be run to count the referral I will fix the issue with proxies soon. Thanks for your contribution

Do you know how open this window using any library in python?