Skip to content

Eror After RUN #670

@soheilinjast

Description

@soheilinjast

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions