south1907 / addmember-telegram

Add member auto to telegram group. Link youtube: https://www.youtube.com/watch?v=qnNsgHCMQYk
GNU General Public License v3.0
246 stars 232 forks source link

:telethon.network.mtprotosender:Attempt 1 at connecting failed: TimeoutError: #2

Closed premnathdey closed 4 years ago

premnathdey commented 4 years ago

WARNING:telethon.network.mtprotosender:Attempt 1 at connecting failed: TimeoutError: WARNING:telethon.network.mtprotosender:Attempt 2 at connecting failed: TimeoutError: WARNING:telethon.network.mtprotosender:Attempt 3 at connecting failed: TimeoutError: WARNING:telethon.network.mtprotosender:Attempt 4 at connecting failed: TimeoutError: WARNING:telethon.network.mtprotosender:Connection error 5 during auth_key gen: ConnectionError: Not connected WARNING:telethon.network.mtprotosender:Connection error 6 during auth_key gen: ConnectionError: Not connected Traceback (most recent call last): File "getonlygroup.py", line 21, in client.connect() File "/opt/anaconda3/lib/python3.7/site-packages/telethon/sync.py", line 39, in syncified return loop.run_until_complete(coro) File "/opt/anaconda3/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete return future.result() File "/opt/anaconda3/lib/python3.7/site-packages/telethon/client/telegrambaseclient.py", line 478, in connect proxy=self._proxy File "/opt/anaconda3/lib/python3.7/site-packages/telethon/network/mtprotosender.py", line 125, in connect await self._connect() File "/opt/anaconda3/lib/python3.7/site-packages/telethon/network/mtprotosender.py", line 250, in _connect raise ConnectionError('Connection to Telegram failed {} time(s)'.format(self._retries)) ConnectionError: Connection to Telegram failed 5 time(s)

premnathdey commented 4 years ago

Can You help me why I am getting this error? I had used with and without a VPN but both doesn't work for me.

In your code getdata.py at line 19, why did you provided proxy? Should I change it! If yes then kindly tell me the process.

south1907 commented 4 years ago

Hi, telegram need proxy to connect. I guess my proxy I fix in my code in my code is expired. You can search "mtproxy list free" and choice it yourself.

nishankk18 commented 4 years ago

Could anyone give a detailed walkthrough on how to do it from the start? would be a great help thank you

nishankk18 commented 4 years ago

Hi, telegram need proxy to connect. I guess my proxy I fix in my code in my code is expired. You can search "mtproxy list free" and choice it yourself.

I #ed the proxy yet unable to run the code without errors. 'client': <telethon.client.telegramclient.TelegramClient object at 0x000001B455CF6F28>} This is the error i get.

premnathdey commented 4 years ago

Could anyone give a detailed walkthrough on how to do it from the start? would be a great help thank you

https://www.youtube.com/watch?v=Kv0pGqawZPI

Follow this youtube tutorial

south1907 commented 4 years ago

Could anyone give a detailed walkthrough on how to do it from the start? would be a great help thank you

https://www.youtube.com/watch?v=Kv0pGqawZPI

Follow this youtube tutorial

Nice =))

south1907 commented 4 years ago

Simple, you need remove proxy in code. see new file init_session.py

south1907 commented 4 years ago

I updated in commit https://github.com/south1907/addmember-telegram/commit/65d25565be31c69fbfa903cbf2cc7ec5ac363a27