1
watsy0007 2020-03-01 15:37:47 +08:00
cool.
|
2
byplcy 2020-03-19 16:54:57 +08:00
请教个问题,
make 后输入手机号 格式为 +8613800138000 我确认 电报 api_id/api_hash 都是对的 会显示这个错误: Traceback (most recent call last): File "pull.py", line 222, in <module> client = ChannelTelegramClient(SESSION, API_ID, API_HASH) File "pull.py", line 152, in __init__ self.sign_in(user_phone) File "/usr/local/lib/python3.6/site-packages/telethon/sync.py", line 39, in syncified return loop.run_until_complete(coro) File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/usr/local/lib/python3.6/site-packages/telethon/client/auth.py", line 319, in sign_in return await self.send_code_request(phone) File "/usr/local/lib/python3.6/site-packages/telethon/client/auth.py", line 474, in send_code_request phone, self.api_id, self.api_hash, types.CodeSettings())) File "/usr/local/lib/python3.6/site-packages/telethon/client/users.py", line 64, in __call__ result = await future telethon.errors.rpcerrorlist.ApiIdInvalidError: The api_id/api_hash combination is invalid (caused by SendCodeRequest) make: *** [Makefile:11: pull] Error 1 |
3
zfish OP 这里面有个 bug,默认导入进去的 api_key 本身是个整数,导入后变成字符串了,你试试转换下格式
|