How can Set Up Telegram via Docker Compose

Dear All,

I followed Development with Docker for run my project in docker.

I would like to use bot via telegram.

I use ngrok for port 5002

Set up my docker compose for rase core as below:

version: ‘3.0’

services: rasa_core: container_name: core image: rasa/rasa_core:latest ports: - 5002:5002 networks: [‘rasa-network’] volumes: - /blockstorage/bot/erica/models/rasa_core:/app/models - /blockstorage/bot/erica/config:/app/config - /blockstorage/bot/erica/domain.yml:/app/models/domain.yml - /blockstorage/bot/erica/credentials.yml:/app/credentials.yml command: - start - --core - models - -c - telegram - --endpoints - config/endpoints.yml - -u - current/ - --credentials - credentials.yml

But have error when run

2018-11-13 12:31:45 INFO root - Rasa process starting, 2018-11-13 12:31:45 WARNING py.warnings - /usr/local/lib/python3.6/site-packages/pykwalify/core.py:99: UnsafeLoaderWarning: , The default ‘Loader’ for ‘load(stream)’ without further arguments can be unsafe., Use ‘load(stream, Loader=ruamel.yaml.Loader)’ explicitly if that is OK., Alternatively include the following in your code:, , import warnings, warnings.simplefilter(‘ignore’, ruamel.yaml.error.UnsafeLoaderWarning), , In most other cases you should consider using ‘safe_load(stream)’, data = yaml.load(stream), , 2018-11-13 12:31:49.527565: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA, Traceback (most recent call last):, File “/usr/local/lib/python3.6/runpy.py”, line 193, in _run_module_as_main, “main”, mod_spec), File “/usr/local/lib/python3.6/runpy.py”, line 85, in _run_code, exec(code, run_globals), File “/app/rasa_core/run.py”, line 263, in , cmdline_args.jwt_method), File “/app/rasa_core/run.py”, line 200, in serve_application, jwt_secret, jwt_method), File “/app/rasa_core/run.py”, line 170, in start_server, route="/webhooks/"), File “/app/rasa_core/channels/channel.py”, line 65, in register, app.register_blueprint(channel.blueprint(on_new_message), url_prefix=p), File “/app/rasa_core/channels/telegram.py”, line 181, in blueprint, set_webhook(), File “/app/rasa_core/channels/telegram.py”, line 124, in set_webhook, s = out_channel.setWebhook(self.webhook_url), File “/usr/local/lib/python3.6/site-packages/telegram/bot.py”, line 60, in decorator, result = func(self, *args, **kwargs), File “/usr/local/lib/python3.6/site-packages/telegram/bot.py”, line 1861, in set_webhook, result = self.request.post(url, data, timeout=timeout), File “/usr/local/lib/python3.6/site-packages/telegram/utils/request.py”, line 278, in post, **urlopen_kwargs), File “/usr/local/lib/python3.6/site-packages/telegram/utils/request.py”, line 215, in _request_wrapper, raise BadRequest(message), telegram.error.BadRequest: Bad webhook: https url must be provided for webhook,

Pls support

1 Like

Same problem here.