Describe the bug
api_hash:
api_id:
chat_id: -1001380566192
download_directory: C:\Temp\source\repos\TDownloads\Downloads
ids_to_retry: {}
last_read_message_id: {}
file_formats:
document:
- pdf
media_types:
- audio
- document
- voice
- video_note
phone_number: +12225555555
Python Version
Python: [e.g. 3.9.6]
OS:
Win10
Logs
Traceback (most recent call last):
File "C:\Temp\source\repos\TDownloads\TGD1\telegram_media_downloader\media_downloader.py", line 443, in
main()
File "C:\Temp\source\repos\TDownloads\TGD1\telegram_media_downloader\media_downloader.py", line 424, in main
updated_config = asyncio.run(
File "C:\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Temp\source\repos\TDownloads\TGD1\telegram_media_downloader\media_downloader.py", line 343, in begin_import
await client.start()
File "C:\Python39\lib\site-packages\pyrogram\methods\utilities\start.py", line 62, in start
await self.authorize()
File "C:\Python39\lib\site-packages\pyrogram\client.py", line 359, in authorize
sent_code = await self.send_code(self.phone_number)
File "C:\Python39\lib\site-packages\pyrogram\methods\auth\send_code.py", line 50, in send_code
phone_number = phone_number.strip(" +")
AttributeError: 'int' object has no attribute 'strip'