sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type
При выполнении строки app.send_photo(chat_id, photo, caption=text) выводит ошибку sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
Полный текст об ошибке:
File "C:\Users\User\Desktop\autopisatel.py", line 135, in lol
app.send_photo(chat_id, photo, caption=text)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\sync.py", line 78, in async_to_sync_wrap
return asyncio.run_coroutine_threadsafe(coroutine, main_loop).result()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\_base.py", line 446, in result
return self.__get_result()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\_base.py", line 391, in __get_result
raise self._exception
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\methods\messages\send_photo.py", line 170, in send_photo
peer=await self.resolve_peer(chat_id),
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\methods\advanced\resolve_peer.py", line 60, in resolve_peer
return await self.storage.get_peer_by_id(peer_id)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\storage\sqlite_storage.py", line 142, in get_peer_by_id
r = self.conn.execute(
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.