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

 telegram:
  access_token: "490161424:AAGlRxinBRtKGb21_rlOEMtDFZMXBl6EC0o"
  verify: "your_bot"
  webhook_url: "https://your_url.com/webhooks/telegram/webhook"

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: "http://a17f129c.ngrok.io/webhooks/telegram/webhook"

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

yes this my code on crendentials file :

 telegram:
   access_token: "***************"
   verify: "***********"
   webhook_url: "http://*********.ngrok.io/webhooks/telegram/webhook"

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\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\users\pusha\anaconda3\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Users\pusha\anaconda3\Scripts\rasa.exe_main.py", line 7, in File "c:\users\pusha\anaconda3\lib\site-packages\rasa_main.py", line 91, in main cmdline_arguments.func(cmdline_arguments) File “c:\users\pusha\anaconda3\lib\site-packages\rasa\cli\run.py”, line 114, in run rasa.run(**vars(args)) File “c:\users\pusha\anaconda3\lib\site-packages\rasa\run.py”, line 56, in run **kwargs, File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\run.py”, line 184, in serve_application conversation_id=conversation_id, File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\run.py”, line 112, in configure_app channels.channel.register(input_channels, app, route=route) File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\channels\channel.py”, line 90, in register app.blueprint(channel.blueprint(handler), url_prefix=p) File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\channels\telegram.py”, line 185, in blueprint out_channel = self.get_output_channel() File “c:\users\pusha\anaconda3\lib\site-packages\rasa\core\channels\telegram.py”, line 268, in get_output_channel channel.setWebhook(self.webhook_url) File “<c:\users\pusha\anaconda3\lib\site-packages\decorator.py:decorator-gen-32>”, line 2, in set_webhook File “c:\users\pusha\anaconda3\lib\site-packages\telegram\bot.py”, line 70, in decorator result = func(*args, **kwargs) File “c:\users\pusha\anaconda3\lib\site-packages\telegram\bot.py”, line 2240, in set_webhook result = self.request.post(url, data, timeout=timeout) File “c:\users\pusha\anaconda3\lib\site-packages\telegram\utils\request.py”, line 334, in post **urlopen_kwargs) File “c:\users\pusha\anaconda3\lib\site-packages\telegram\utils\request.py”, 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?