Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eror After RUN #670

Open
soheilinjast opened this issue Jan 19, 2025 · 0 comments
Open

Eror After RUN #670

soheilinjast opened this issue Jan 19, 2025 · 0 comments

Comments

@soheilinjast
Copy link

hey ihave eror after run this code "python bot/main.py"



Traceback (most recent call last):
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\bot\main.py", line 117, in <module>
    main()
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\bot\main.py", line 113, in main
    telegram_bot.run()
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\bot\telegram_bot.py", line 1083, in run
    application.run_polling()
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\ext\_application.py", line 868, in run_polling
    return self.__run(
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\ext\_application.py", line 1069, in __run
    loop.run_until_complete(self.initialize())
  File "C:\Users\Soheil\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
    return future.result()
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\ext\_application.py", line 487, in initialize
    await self.bot.initialize()
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\ext\_extbot.py", line 300, in initialize
    await super().initialize()
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\_bot.py", line 763, in initialize
    await self.get_me()
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\ext\_extbot.py", line 1957, in get_me
    return await super().get_me(
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\_bot.py", line 895, in get_me
    result = await self._post(
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\_bot.py", line 619, in _post
    return await self._do_post(
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\ext\_extbot.py", line 354, in _do_post
    return await super()._do_post(
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\_bot.py", line 648, in _do_post
    result = await request.post(
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\request\_baserequest.py", line 202, in post
    result = await self._request_wrapper(
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\request\_baserequest.py", line 334, in _request_wrapper
    code, payload = await self.do_request(
  File "C:\Users\Soheil\Desktop\chatgpt-telegram-bot-0.4.2\venv\lib\site-packages\telegram\request\_httpxrequest.py", line 310, in do_request
    raise TimedOut from err
telegram.error.TimedOut: Timed out

i try with VPN
without vpn
with dns
without dns and i dont know what is the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant