Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Can no longer use published API ID #126

Open
shinji257 opened this issue Sep 18, 2019 · 0 comments
Open

Can no longer use published API ID #126

shinji257 opened this issue Sep 18, 2019 · 0 comments

Comments

@shinji257
Copy link

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant