How to solve that problem to deploy my bot to telegram or any voice channel

raise BadRequest(message)

telegram.error.BadRequest: Can’t parse url

    how can solve that  issue plz help tp connect my bot to telegram and thx in adv

in file credentials.yml I just used as followed

  access_token: "490161424:AAGlRxinBRtKGb21_rlOEMtDFZMXBl6EC0o"
  verify: "your_bot"
  webhook_url: ""

and in Ngrok I just run my terminal that command

  ./ngrok http 5055

and I passed the url in credentials.yml but it does not work plz help to solve it

Hi @hajoura. Are you using ngrok for your wehbook or something else? If it is ngrok (which I can see you start on port 5055), then you should use the ngrok url inside the webhook_url, for example:

webhook_url: ""

Also, did you configure the webhook on the telegram’s side?

yes this my code on crendentials file :

   access_token: "***************"
   verify: "***********"
   webhook_url: "http://*********"

and I change

  ./ngrok http 5002

and I run the http server in 5002 using python the command is puthon3 -m httpserver 5002 it has been connect and I see my all file in that the web page

Traceback (most recent call last): File “c:\users\pusha\anaconda3\lib\”, line 193, in run_module_as_main “main”, mod_spec) File “c:\users\pusha\anaconda3\lib\”, line 85, in run_code exec(code, run_globals) File "C:\Users\pusha\anaconda3\Scripts\", line 7, in File "c:\users\pusha\anaconda3\lib\site-packages\", line 91, in main cmdline_arguments.func(cmdline_arguments) File “c:\users\pusha\anaconda3\lib\site-packages\rasa\cli\”, line 114, in run**vars(args)) File “c:\users\pusha\anaconda3\lib\site-packages\rasa\”, line 56, in run **kwargs, File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\”, line 184, in serve_application conversation_id=conversation_id, File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\”, line 112, in configure_app, app, route=route) File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\channels\”, line 90, in register app.blueprint(channel.blueprint(handler), url_prefix=p) File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\channels\”, line 185, in blueprint out_channel = self.get_output_channel() File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\channels\”, line 268, in get_output_channel channel.setWebhook(self.webhook_url) File “<c:\users\pusha\anaconda3\lib\site-packages\>”, line 2, in set_webhook File “c:\users\pusha\anaconda3\lib\site-packages\telegram\”, line 70, in decorator result = func(*args, **kwargs) File “c:\users\pusha\anaconda3\lib\site-packages\telegram\”, line 2240, in set_webhook result =, data, timeout=timeout) File “c:\users\pusha\anaconda3\lib\site-packages\telegram\utils\”, line 334, in post **urlopen_kwargs) File “c:\users\pusha\anaconda3\lib\site-packages\telegram\utils\”, line 245, in _request_wrapper raise BadRequest(message) telegram.error.BadRequest: Can’t parse url

i have used port no 5005 as well as 5002 in ngrok. But still the issue persists. Please help me. It’s urgent.

ya I am also facing the same issue.Anyone’s help would be appreciated. Is it something related to version?