Dineshkarthik/telegram_media_downloader

OverflowError: Python int too large to convert to SQLite INTEGER

Lynn-Becky opened this issue · 0 comments

To Reproduce
last_read_message_id: 0
ids_to_retry: []
media_types:

  • photo
  • video
    file_formats:
    audio:
    • all
      document:
    • all
      video:
    • all

Python Version
Python: 3.10.5

OS:
The OS and its version: Windows10 64bit

Logs
[18:02:39] INFO Connecting... connection.py:56
INFO Connected! Production DC1 - IPv4 - TCPAbridgedO connection.py:63
INFO NetworkTask started session.py:271
[18:02:40] INFO Time synced: 2023-04-22 10:02:43.166573 UTC msg_id.py:45
[18:02:41] INFO Session initialized: Layer 150 session.py:131
INFO Device: CPython 3.10.5 - Pyrogram 2.0.69 session.py:132
INFO System: Windows 10 (EN) session.py:133
INFO Session started session.py:148
INFO PingTask started session.py:249
[18:02:42] INFO Started 20 HandlerTasks dispatcher.py:154
Traceback (most recent call last):
File "C:\Users\17426\Desktop\telegram_media_downloader\media_downloader.py", line 376, in
main()
File "C:\Users\17426\Desktop\telegram_media_downloader\media_downloader.py", line 360, in main
updated_config = asyncio.get_event_loop().run_until_complete(
File "C:\Users\17426\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\Users\17426\Desktop\telegram_media_downloader\media_downloader.py", line 327, in begin_import
async for message in messages_iter: # type: ignore
File "C:\Users\17426\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\methods\messages\get_chat_history.py", line 115, in get_chat_history
messages = await get_chunk(
File "C:\Users\17426\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\methods\messages\get_chat_history.py", line 42, in get_chunk
peer=await client.resolve_peer(chat_id),
File "C:\Users\17426\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\methods\advanced\resolve_peer.py", line 62, in resolve_peer
return await self.storage.get_peer_by_id(peer_id)
File "C:\Users\17426\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\storage\sqlite_storage.py", line 142, in get_peer_by_id
r = self.conn.execute(
OverflowError: Python int too large to convert to SQLite INTEGER

Additional context
Add any other context about the problem here.