Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to connect error #352

Open
Open
@chitogeedits

Description

when i try to run main.py its only shows error. and i also verified the api_id and api_hash in https://my.telegram.org/apps.

C:\Users\xxxx\OneDrive\Documents\File-Sharing-Bot-main>python3 .\main.py
TgCrypto is missing! Pyrogram will work the same, but at a much slower speed. More info: https://docs.pyrogram.org/topics/speedups
Pyromod is working! If you like pyromod, please star it at https://github.com/usernein/pyromod
[10-Jul-25 11:02:34 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:02:45 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:02:56 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:02:57 - WARNING] - pyrogram.connection.connection - Connection failed! Trying again...
[10-Jul-25 11:03:08 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:03:19 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:03:30 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:03:31 - WARNING] - pyrogram.connection.connection - Connection failed! Trying again...
[10-Jul-25 11:03:42 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:03:53 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:04:04 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:04:05 - WARNING] - pyrogram.connection.connection - Connection failed! Trying again...
[10-Jul-25 11:04:16 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:04:27 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:04:38 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:04:39 - WARNING] - pyrogram.connection.connection - Connection failed! Trying again...
[10-Jul-25 11:04:50 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:05:01 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:05:12 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:05:13 - WARNING] - pyrogram.connection.connection - Connection failed! Trying again...
[10-Jul-25 11:05:24 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:05:35 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:05:46 - WARNING] - pyrogram.connection.connection - Unable to connect due to network issues: Connection timed out
[10-Jul-25 11:05:47 - WARNING] - pyrogram.connection.connection - Connection failed! Trying again...
Traceback (most recent call last):
File "C:\Users\xxxx\OneDrive\Documents\File-Sharing-Bot-main\main.py", line 3, in
Bot().run()
~~~~~~~~~^^
File "C:\Users\xxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pyrogram\methods\utilities\run.py", line 80, in run
run(self.start())
~~~^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.752.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 725, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "C:\Users\xxxx\OneDrive\Documents\File-Sharing-Bot-main\bot.py", line 39, in start
await super().start()
File "C:\Users\xxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pyrogram\methods\utilities\start.py", line 58, in start
is_authorized = await self.connect()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pyrogram\methods\auth\connect.py", line 40, in connect
await self.load_session()
File "C:\Users\xxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pyrogram\client.py", line 637, in load_session
await Auth(
...<2 lines>...
).create()
File "C:\Users\xxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pyrogram\session\auth.py", line 274, in create
raise e
File "C:\Users\xxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pyrogram\session\auth.py", line 84, in create
await self.connection.connect()
File "C:\Users\xxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pyrogram\connection\connection.py", line 62, in connect
raise ConnectionError
ConnectionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /