bipinkrish / Save-Restricted-Bot

A Telegram Bot, Which can send you restricted content by it's post link
195 stars 399 forks source link

Running main.py Error #28

Open mehrdad-data opened 10 months ago

mehrdad-data commented 10 months ago

Hi I cant run the code becuase of below error , Whats the problem ? Thanks

(savebot) C:\Save-Restricted-Bot>python main.py Traceback (most recent call last): File "main.py", line 22, in acc.start() File "C:\Save-Restricted-Bot\savebot\lib\site-packages\pyrogram\sync.py", line 66, in async_to_sync_wrap return loop.run_until_complete(coroutine) File "C:\python\lib\asyncio\base_events.py", line 616, in run_until_complete return future.result() File "C:\Save-Restricted-Bot\savebot\lib\site-packages\pyrogram\methods\utilit ies\start.py", line 58, in start is_authorized = await self.connect() File "C:\Save-Restricted-Bot\savebot\lib\site-packages\pyrogram\methods\auth\c onnect.py", line 40, in connect await self.load_session() File "C:\Save-Restricted-Bot\savebot\lib\site-packages\pyrogram\client.py", li ne 616, in load_session await self.storage.open() File "C:\Save-Restricted-Bot\savebot\lib\site-packages\pyrogram\storage\memory _storage.py", line 59, in open dc_id, api_id, test_mode, auth_key, user_id, is_bot = struct.unpack( struct.error: unpack requires a buffer of 271 bytes

mehrdad-data commented 10 months ago

problem solved rename json file to py and open ir with IDLE python and change data then save and rename it to json.

kcoffical6 commented 10 months ago

Please explain in detail