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

Integer too big #481

Open
csmx1234 opened this issue Nov 25, 2023 · 1 comment
Open

Integer too big #481

csmx1234 opened this issue Nov 25, 2023 · 1 comment
Labels

Comments

@csmx1234
Copy link

csmx1234 commented Nov 25, 2023

Describe the bug
When I run python media_downloader.py, it exits and says OverflowError: int too big to convert

To Reproduce
Share the config: Please don't share your api_hash & api_id

chat_id: ********
last_read_message_id: 0
ids_to_retry: []
media_types:
- audio
- photo
- video
- document
- voice
- video_note
file_formats:
  audio:
  - all
  document:
  - all
  video:
  - all

Python Version
Python 3.11.6

OS:
MacOS 11.6.1

Logs
[13:05:59] Telegram Media Downloader v2.0.2, meta.py:18
Copyright (C) 2019 Dineshkarthik https://github.com/Dineshkarthik
Licensed under the terms of the MIT License meta.py:21

[13:05:59] INFO Device: CPython 3.11.6 - Telegram Media Downloader 2.0.2 meta.py:22
INFO System: Darwin 20.6.0 (EN) meta.py:23
INFO Start creating a new auth key on DC2 auth.py:82
INFO Connecting... connection.py:47
[13:06:00] INFO Connected! Production DC2 - IPv4 connection.py:54
[13:06:02] INFO Done auth key exchange: DhGenOk auth.py:267
INFO Disconnected connection.py:66
INFO Connecting... connection.py:47
[13:06:03] INFO Connected! Production DC2 - IPv4 connection.py:54
INFO NetworkTask started session.py:294
[13:06:04] INFO Disconnected connection.py:66
INFO NetworkTask stopped session.py:315
INFO Session stopped session.py:180
Traceback (most recent call last):
File "/Users/csm/Downloads/telegram_media_downloader/media_downloader.py", line 376, in
main()
File "/Users/csm/Downloads/telegram_media_downloader/media_downloader.py", line 360, in main
updated_config = asyncio.get_event_loop().run_until_complete(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/csm/anaconda3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/csm/Downloads/telegram_media_downloader/media_downloader.py", line 311, in begin_import
await client.start()
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/methods/utilities/start.py", line 58, in start
is_authorized = await self.connect()
^^^^^^^^^^^^^^^^^^^^
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/methods/auth/connect.py", line 47, in connect
await self.session.start()
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/session/session.py", line 149, in start
raise e
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/session/session.py", line 120, in start
await self.send(
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/session/session.py", line 318, in send
message = self.msg_factory(data)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/session/internals/msg_factory.py", line 37, in call
len(body)
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/raw/core/tl_object.py", line 79, in len
return len(self.write())
^^^^^^^^^^^^
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/raw/functions/invoke_with_layer.py", line 78, in write
b.write(self.query.write())
^^^^^^^^^^^^^^^^^^
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/raw/functions/init_connection.py", line 128, in write
b.write(Int(self.api_id))
^^^^^^^^^^^^^^^^
File "/Users/csm/anaconda3/lib/python3.11/site-packages/pyrogram/raw/core/primitives/int.py", line 33, in new
return value.to_bytes(cls.SIZE, "little", signed=signed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OverflowError: int too big to convert

Additional context
Add any other context about the problem here.

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity in the past 45 days. It will be closed if no further activity occurs in the next 7 days. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant