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

**URL:** <https://forum.rasa.com/t/how-to-solve-that-problem-to-deploy-my-bot-to-telegram-or-any-voice-channel/14760>\
**Category:** Rasa Open Source\
**Created:** [August 24, 2019, 6:08pm UTC](https://forum.rasa.com/t/how-to-solve-that-problem-to-deploy-my-bot-to-telegram-or-any-voice-channel/14760 "2019-08-24T18:08:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hajoura](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@hajoura](https://forum.rasa.com/u/hajoura)\
**Post date:** [August 24, 2019, 6:08pm UTC](https://forum.rasa.com/t/how-to-solve-that-problem-to-deploy-my-bot-to-telegram-or-any-voice-channel/14760/1 "2019-08-24T18:08:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [August 26, 2019, 3:11pm UTC](https://forum.rasa.com/t/how-to-solve-that-problem-to-deploy-my-bot-to-telegram-or-any-voice-channel/14760/2 "2019-08-26T15:11:19Z")

</div>

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:

```auto
webhook_url: "http://a17f129c.ngrok.io/webhooks/telegram/webhook"

```

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

---

<div class="post-metadata">

**Author:** ![hajoura](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@hajoura](https://forum.rasa.com/u/hajoura)\
**Post date:** [August 26, 2019, 3:31pm UTC](https://forum.rasa.com/t/how-to-solve-that-problem-to-deploy-my-bot-to-telegram-or-any-voice-channel/14760/3 "2019-08-26T15:31:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pushan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pushan/32/12518_2.png) [@pushan](https://forum.rasa.com/u/pushan)\
**Post date:** [June 4, 2020, 1:28pm UTC](https://forum.rasa.com/t/how-to-solve-that-problem-to-deploy-my-bot-to-telegram-or-any-voice-channel/14760/4 "2020-06-04T13:28:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gulafshan](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@gulafshan](https://forum.rasa.com/u/gulafshan)\
**Post date:** [June 8, 2020, 10:34pm UTC](https://forum.rasa.com/t/how-to-solve-that-problem-to-deploy-my-bot-to-telegram-or-any-voice-channel/14760/5 "2020-06-08T22:34:25Z")

</div>

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