Mahesh0253/Media-Search-bot

RPC ERROR - BOT CRASHING IMMEDIATELY AFTER DEPLOYMENT

Closed this issue · 0 comments

AFTER THE WORKER IS STARTED ;
THIS HAPPENS.

PLEASE LET ME KNOW HOW TO FIX IT

Pyrogram v1.0.7, Copyright (C) 2017-2020 Dan https://github.com/delivrance
2021-04-24T23:02:57.889465+00:00 app[worker.1]: Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)
2021-04-24T23:02:57.889466+00:00 app[worker.1]:
2021-04-24T23:02:58.468430+00:00 app[worker.1]: Traceback (most recent call last):
2021-04-24T23:02:58.468440+00:00 app[worker.1]: File "bot.py", line 40, in
2021-04-24T23:02:58.468640+00:00 app[worker.1]: app.run()
2021-04-24T23:02:58.468647+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/utilities/run.py", line 57, in run
2021-04-24T23:02:58.468800+00:00 app[worker.1]: run(self.start())
2021-04-24T23:02:58.468804+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
2021-04-24T23:02:58.469181+00:00 app[worker.1]: return future.result()
2021-04-24T23:02:58.469186+00:00 app[worker.1]: File "bot.py", line 28, in start
2021-04-24T23:02:58.469311+00:00 app[worker.1]: await super().start()
2021-04-24T23:02:58.469336+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/utilities/start.py", line 57, in start
2021-04-24T23:02:58.469486+00:00 app[worker.1]: await self.authorize()
2021-04-24T23:02:58.469489+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/client.py", line 280, in authorize
2021-04-24T23:02:58.469706+00:00 app[worker.1]: return await self.sign_in_bot(self.bot_token)
2021-04-24T23:02:58.469726+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/auth/sign_in_bot.py", line 46, in sign_in_bot
2021-04-24T23:02:58.469856+00:00 app[worker.1]: r = await self.send(
2021-04-24T23:02:58.469876+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/advanced/send.py", line 77, in send
2021-04-24T23:02:58.470018+00:00 app[worker.1]: r = await self.session.send(
2021-04-24T23:02:58.470063+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/session/session.py", line 441, in send
2021-04-24T23:02:58.470358+00:00 app[worker.1]: return await self._send(data, timeout=timeout)
2021-04-24T23:02:58.470405+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/session/session.py", line 411, in _send
2021-04-24T23:02:58.470614+00:00 app[worker.1]: RPCError.raise_it(result, type(data))
2021-04-24T23:02:58.470617+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/errors/rpc_error.py", line 78, in raise_it
2021-04-24T23:02:58.470826+00:00 app[worker.1]: raise getattr(
2021-04-24T23:02:58.470883+00:00 app[worker.1]: pyrogram.errors.exceptions.bad_request_400.ApiIdInvalid: [400 API_ID_INVALID]: The api_id/api_hash combination is invalid (caused by "auth.ImportBotAuthorization")
2021-04-24T23:02:58.735664+00:00 heroku[worker.1]: Process exited with status 1
2021-04-24T23:02:58.921775+00:00 heroku[worker.1]: State changed from up to crashed