telegram-export icon indicating copy to clipboard operation
telegram-export copied to clipboard

Can no longer use published API ID

Open shinji257 opened this issue 5 years ago • 0 comments

Just a PSA that you can no longer use the published API ID that is in the telegram source code.

Traceback (most recent call last):
  File "/usr/local/bin/telegram-export", line 3, in <module>
    runpy.run_module("telegram_export", run_name="__main__", alter_sys=True)
  File "/usr/lib/python3.7/runpy.py", line 205, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.7/dist-packages/telegram_export/__main__.py", line 316, in <module>
    ret = loop.run_until_complete(main(loop)) or 0
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.7/dist-packages/telegram_export/__main__.py", line 289, in main
    ).start(config['TelegramAPI']['PhoneNumber']))
  File "/usr/local/lib/python3.7/dist-packages/telethon/client/auth.py", line 148, in _start
    sent_code = await self.send_code_request(phone, force_sms=force_sms)
  File "/usr/local/lib/python3.7/dist-packages/telethon/client/auth.py", line 374, in send_code_request                                                                                                      
    phone, self.api_id, self.api_hash))
  File "/usr/local/lib/python3.7/dist-packages/telethon/client/users.py", line 60, in __call__
    result = await future
telethon.errors.rpcerrorlist.ApiIdPublishedFloodError: This API id was published somewhere, you can't use it now (caused by SendCodeRequest)

shinji257 avatar Sep 18 '19 23:09 shinji257